From bfb5054da449c41e35d0bb883eee14e200cc6cf1 Mon Sep 17 00:00:00 2001 From: Basel Rustum Date: Mon, 3 May 2021 13:18:00 -0700 Subject: [PATCH] [TSI] Renaming and hiding types (#20773) --- ...e.IoT.TimeSeriesInsights.netstandard2.0.cs | 433 +++++------------- .../HierarchiesSamples.cs | 1 - .../Models/AggregateSeries.Serialization.cs | 2 +- .../src/Customized/Models/AggregateSeries.cs | 2 +- .../Models/GetEvents.Serialization.cs | 2 +- .../src/Customized/Models/GetEvents.cs | 2 +- .../Models/GetSeries.Serialization.cs | 2 +- .../src/Customized/Models/GetSeries.cs | 2 +- .../HierarchiesBatchResponse.Serialization.cs | 2 +- .../Models/HierarchiesExpandKind.cs | 12 + .../Customized/Models/HierarchiesSortBy.cs | 12 + .../Models/InstanceHitHighlights.cs | 12 + .../InstancesBatchResponse.Serialization.cs | 2 +- ...esRequestBatchGetOrDelete.Serialization.cs | 2 +- .../InstancesRequestBatchGetOrDelete.cs | 2 +- .../src/Customized/Models/InstancesSortBy.cs | 12 + .../Models/InterpolationBoundary.cs | 16 + .../Customized/Models/InterpolationKind.cs | 15 + .../Models/TimeSeriesHierarchySource.cs | 15 + .../Models/TimeSeriesIdPropertyTypes.cs | 15 + .../TypesBatchResponse.Serialization.cs | 2 +- .../Models/AggregateSeries.Serialization.cs | 2 +- .../src/Generated/Models/AggregateSeries.cs | 2 +- .../Models/GetEvents.Serialization.cs | 2 +- .../src/Generated/Models/GetEvents.cs | 2 +- .../GetHierarchiesPage.Serialization.cs | 2 +- .../Generated/Models/GetHierarchiesPage.cs | 2 +- .../Models/GetInstancesPage.Serialization.cs | 2 +- .../src/Generated/Models/GetInstancesPage.cs | 2 +- .../Models/GetSeries.Serialization.cs | 2 +- .../src/Generated/Models/GetSeries.cs | 2 +- .../Models/GetTypesPage.Serialization.cs | 2 +- .../src/Generated/Models/GetTypesPage.cs | 2 +- .../HierarchiesBatchRequest.Serialization.cs | 2 +- .../Models/HierarchiesBatchRequest.cs | 2 +- .../HierarchiesBatchResponse.Serialization.cs | 2 +- .../Models/HierarchiesBatchResponse.cs | 2 +- .../Generated/Models/HierarchiesExpandKind.cs | 4 +- .../Models/HierarchiesExpandParameter.cs | 2 - ...hiesRequestBatchGetDelete.Serialization.cs | 2 +- .../HierarchiesRequestBatchGetDelete.cs | 2 +- .../src/Generated/Models/HierarchiesSortBy.cs | 4 +- .../Models/HierarchiesSortParameter.cs | 2 - .../Models/InstanceHit.Serialization.cs | 1 - .../src/Generated/Models/InstanceHit.cs | 1 - .../InstanceHitHighlights.Serialization.cs | 4 +- .../Generated/Models/InstanceHitHighlights.cs | 4 +- .../InstancesBatchRequest.Serialization.cs | 2 +- .../Generated/Models/InstancesBatchRequest.cs | 2 +- .../InstancesBatchResponse.Serialization.cs | 2 +- .../Models/InstancesBatchResponse.cs | 2 +- ...esRequestBatchGetOrDelete.Serialization.cs | 2 +- .../InstancesRequestBatchGetOrDelete.cs | 2 +- .../src/Generated/Models/InstancesSortBy.cs | 4 +- .../Models/InstancesSortParameter.cs | 2 - .../InterpolationBoundary.Serialization.cs | 2 +- .../Generated/Models/InterpolationBoundary.cs | 2 +- .../src/Generated/Models/InterpolationKind.cs | 2 +- .../InterpolationOperation.Serialization.cs | 1 - .../Models/InterpolationOperation.cs | 2 - .../ModelSettingsResponse.Serialization.cs | 2 +- .../Generated/Models/ModelSettingsResponse.cs | 2 +- .../Models/QueryRequest.Serialization.cs | 2 +- .../src/Generated/Models/QueryRequest.cs | 2 +- .../TimeSeriesHierarchy.Serialization.cs | 1 - .../Generated/Models/TimeSeriesHierarchy.cs | 1 - ...TimeSeriesHierarchySource.Serialization.cs | 2 +- .../Models/TimeSeriesHierarchySource.cs | 2 +- .../TimeSeriesIdProperty.Serialization.cs | 1 - .../Generated/Models/TimeSeriesIdProperty.cs | 2 - .../Models/TimeSeriesIdPropertyTypes.cs | 2 +- .../Models/TypesBatchRequest.Serialization.cs | 2 +- .../src/Generated/Models/TypesBatchRequest.cs | 2 +- .../TypesBatchResponse.Serialization.cs | 2 +- .../Generated/Models/TypesBatchResponse.cs | 2 +- ...esRequestBatchGetOrDelete.Serialization.cs | 2 +- .../Models/TypesRequestBatchGetOrDelete.cs | 2 +- .../src/GlobalSuppressions.cs | 1 - .../src/TimeSeriesInsightsClient.cs | 20 +- ...nt.cs => TimeSeriesInsightsHierarchies.cs} | 10 +- ...ient.cs => TimeSeriesInsightsInstances.cs} | 11 +- ....cs => TimeSeriesInsightsModelSettings.cs} | 10 +- ...ryClient.cs => TimeSeriesInsightsQuery.cs} | 8 +- ...esClient.cs => TimeSeriesInsightsTypes.cs} | 8 +- .../src/autorest.md | 13 +- .../tests/HierarchiesTests.cs | 1 - ...SeriesInsightsQueryAggregateSeriesTests.cs | 1 - 87 files changed, 337 insertions(+), 427 deletions(-) create mode 100644 sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesExpandKind.cs create mode 100644 sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesSortBy.cs create mode 100644 sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstanceHitHighlights.cs create mode 100644 sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesSortBy.cs create mode 100644 sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InterpolationBoundary.cs create mode 100644 sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InterpolationKind.cs create mode 100644 sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TimeSeriesHierarchySource.cs create mode 100644 sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TimeSeriesIdPropertyTypes.cs rename sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/{HierarchiesClient.cs => TimeSeriesInsightsHierarchies.cs} (98%) rename sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/{InstancesClient.cs => TimeSeriesInsightsInstances.cs} (98%) rename sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/{ModelSettingsClient.cs => TimeSeriesInsightsModelSettings.cs} (95%) rename sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/{QueryClient.cs => TimeSeriesInsightsQuery.cs} (98%) rename sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/{TypesClient.cs => TimeSeriesInsightsTypes.cs} (99%) diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/api/Azure.IoT.TimeSeriesInsights.netstandard2.0.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/api/Azure.IoT.TimeSeriesInsights.netstandard2.0.cs index 08c4d35a1553a..8a44bc5825c8f 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/api/Azure.IoT.TimeSeriesInsights.netstandard2.0.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/api/Azure.IoT.TimeSeriesInsights.netstandard2.0.cs @@ -1,15 +1,5 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class AggregateSeries - { - public AggregateSeries(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, Azure.IoT.TimeSeriesInsights.DateTimeRange searchSpan, System.TimeSpan interval) { } - public Azure.IoT.TimeSeriesInsights.TimeSeriesExpression Filter { get { throw null; } set { } } - public System.Collections.Generic.IDictionary InlineVariables { get { throw null; } } - public System.TimeSpan Interval { get { throw null; } } - public System.Collections.Generic.IList ProjectedVariables { get { throw null; } } - public Azure.IoT.TimeSeriesInsights.DateTimeRange SearchSpan { get { throw null; } } - public Azure.IoT.TimeSeriesInsights.TimeSeriesId TimeSeriesId { get { throw null; } } - } public partial class AggregateVariable : Azure.IoT.TimeSeriesInsights.TimeSeriesVariable { public AggregateVariable(Azure.IoT.TimeSeriesInsights.TimeSeriesExpression aggregation) { } @@ -35,142 +25,40 @@ public EventProperty() { } public string Name { get { throw null; } set { } } public Azure.IoT.TimeSeriesInsights.PropertyTypes? Type { get { throw null; } set { } } } - public partial class GetEvents - { - public GetEvents(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, Azure.IoT.TimeSeriesInsights.DateTimeRange searchSpan) { } - public Azure.IoT.TimeSeriesInsights.TimeSeriesExpression Filter { get { throw null; } set { } } - public System.Collections.Generic.IList ProjectedProperties { get { throw null; } } - public Azure.IoT.TimeSeriesInsights.DateTimeRange SearchSpan { get { throw null; } } - public int? Take { get { throw null; } set { } } - public Azure.IoT.TimeSeriesInsights.TimeSeriesId TimeSeriesId { get { throw null; } } - } - public partial class GetHierarchiesPage : Azure.IoT.TimeSeriesInsights.PagedResponse - { - internal GetHierarchiesPage() { } - public System.Collections.Generic.IReadOnlyList Hierarchies { get { throw null; } } - } - public partial class GetInstancesPage : Azure.IoT.TimeSeriesInsights.PagedResponse - { - internal GetInstancesPage() { } - public System.Collections.Generic.IReadOnlyList Instances { get { throw null; } } - } - public partial class GetSeries - { - public GetSeries(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, Azure.IoT.TimeSeriesInsights.DateTimeRange searchSpan) { } - public Azure.IoT.TimeSeriesInsights.TimeSeriesExpression Filter { get { throw null; } set { } } - public System.Collections.Generic.IDictionary InlineVariables { get { throw null; } } - public System.Collections.Generic.IList ProjectedVariables { get { throw null; } } - public Azure.IoT.TimeSeriesInsights.DateTimeRange SearchSpan { get { throw null; } } - public int? Take { get { throw null; } set { } } - public Azure.IoT.TimeSeriesInsights.TimeSeriesId TimeSeriesId { get { throw null; } } - } - public partial class GetTypesPage : Azure.IoT.TimeSeriesInsights.PagedResponse - { - internal GetTypesPage() { } - public System.Collections.Generic.IReadOnlyList Types { get { throw null; } } - } - public partial class HierarchiesBatchRequest - { - public HierarchiesBatchRequest() { } - public Azure.IoT.TimeSeriesInsights.HierarchiesRequestBatchGetDelete Delete { get { throw null; } set { } } - public Azure.IoT.TimeSeriesInsights.HierarchiesRequestBatchGetDelete Get { get { throw null; } set { } } - public System.Collections.Generic.IList Put { get { throw null; } } - } - public partial class HierarchiesBatchResponse - { - internal HierarchiesBatchResponse() { } - public System.Collections.Generic.IReadOnlyList Delete { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Get { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Put { get { throw null; } } - } - public partial class HierarchiesClient - { - protected HierarchiesClient() { } - public virtual Azure.Response CreateOrReplace(System.Collections.Generic.IEnumerable timeSeriesHierarchies, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrReplaceAsync(System.Collections.Generic.IEnumerable timeSeriesHierarchies, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteById(System.Collections.Generic.IEnumerable timeSeriesHierarchyIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> DeleteByIdAsync(System.Collections.Generic.IEnumerable timeSeriesHierarchyIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteByName(System.Collections.Generic.IEnumerable timeSeriesHierarchyNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> DeleteByNameAsync(System.Collections.Generic.IEnumerable timeSeriesHierarchyNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetById(System.Collections.Generic.IEnumerable timeSeriesHierarchyIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetByIdAsync(System.Collections.Generic.IEnumerable timeSeriesHierarchyIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetByName(System.Collections.Generic.IEnumerable timeSeriesHierarchyNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetByNameAsync(System.Collections.Generic.IEnumerable timeSeriesHierarchyNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HierarchiesRequestBatchGetDelete - { - public HierarchiesRequestBatchGetDelete() { } - public System.Collections.Generic.IList HierarchyIds { get { throw null; } } - public System.Collections.Generic.IList Names { get { throw null; } } - } - public partial class InstancesBatchRequest - { - public InstancesBatchRequest() { } - public Azure.IoT.TimeSeriesInsights.InstancesRequestBatchGetOrDelete Delete { get { throw null; } set { } } - public Azure.IoT.TimeSeriesInsights.InstancesRequestBatchGetOrDelete Get { get { throw null; } set { } } - public System.Collections.Generic.IList Put { get { throw null; } } - public System.Collections.Generic.IList Update { get { throw null; } } - } - public partial class InstancesBatchResponse - { - internal InstancesBatchResponse() { } - public System.Collections.Generic.IReadOnlyList Delete { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Get { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Put { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Update { get { throw null; } } - } - public partial class InstancesClient - { - protected InstancesClient() { } - public virtual Azure.Response CreateOrReplace(System.Collections.Generic.IEnumerable timeSeriesInstances, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrReplaceAsync(System.Collections.Generic.IEnumerable timeSeriesInstances, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Delete(System.Collections.Generic.IEnumerable timeSeriesIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Delete(System.Collections.Generic.IEnumerable timeSeriesNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> DeleteAsync(System.Collections.Generic.IEnumerable timeSeriesIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> DeleteAsync(System.Collections.Generic.IEnumerable timeSeriesNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Collections.Generic.IEnumerable timeSeriesIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Collections.Generic.IEnumerable timeSeriesNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Collections.Generic.IEnumerable timeSeriesIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Collections.Generic.IEnumerable timeSeriesNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Replace(System.Collections.Generic.IEnumerable timeSeriesInstances, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ReplaceAsync(System.Collections.Generic.IEnumerable timeSeriesInstances, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class InstancesOperationResult { internal InstancesOperationResult() { } public Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError Error { get { throw null; } } public Azure.IoT.TimeSeriesInsights.TimeSeriesInstance Instance { get { throw null; } } } - public partial class InstancesRequestBatchGetOrDelete - { - public InstancesRequestBatchGetOrDelete() { } - public System.Collections.Generic.IList Names { get { throw null; } } - public System.Collections.Generic.IList TimeSeriesIds { get { throw null; } } - } - public partial class InterpolationOperation + public partial class InterpolationBoundary { - public InterpolationOperation() { } - public Azure.IoT.TimeSeriesInsights.Models.InterpolationBoundary Boundary { get { throw null; } set { } } - public Azure.IoT.TimeSeriesInsights.Models.InterpolationKind? Kind { get { throw null; } set { } } + public InterpolationBoundary() { } + public System.TimeSpan? Span { get { throw null; } set { } } } - public partial class ModelSettingsClient + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct InterpolationKind : System.IEquatable { - protected ModelSettingsClient() { } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response UpdateDefaultTypeId(string defaultTypeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateDefaultTypeIdAsync(string defaultTypeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response UpdateName(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateNameAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public InterpolationKind(string value) { throw null; } + public static Azure.IoT.TimeSeriesInsights.InterpolationKind Linear { get { throw null; } } + public static Azure.IoT.TimeSeriesInsights.InterpolationKind Step { get { throw null; } } + public bool Equals(Azure.IoT.TimeSeriesInsights.InterpolationKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.IoT.TimeSeriesInsights.InterpolationKind left, Azure.IoT.TimeSeriesInsights.InterpolationKind right) { throw null; } + public static implicit operator Azure.IoT.TimeSeriesInsights.InterpolationKind (string value) { throw null; } + public static bool operator !=(Azure.IoT.TimeSeriesInsights.InterpolationKind left, Azure.IoT.TimeSeriesInsights.InterpolationKind right) { throw null; } + public override string ToString() { throw null; } } - public partial class ModelSettingsResponse + public partial class InterpolationOperation { - internal ModelSettingsResponse() { } - public Azure.IoT.TimeSeriesInsights.TimeSeriesModelSettings ModelSettings { get { throw null; } } + public InterpolationOperation() { } + public Azure.IoT.TimeSeriesInsights.InterpolationBoundary Boundary { get { throw null; } set { } } + public Azure.IoT.TimeSeriesInsights.InterpolationKind? Kind { get { throw null; } set { } } } public partial class NumericVariable : Azure.IoT.TimeSeriesInsights.TimeSeriesVariable { @@ -224,29 +112,12 @@ internal QueryAnalyzer() { } public Azure.Pageable GetResults() { throw null; } public Azure.AsyncPageable GetResultsAsync() { throw null; } } - public partial class QueryClient - { - protected QueryClient() { } - public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateAggregateSeriesQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.TimeSpan interval, Azure.IoT.TimeSeriesInsights.QueryAggregateSeriesRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateAggregateSeriesQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.TimeSpan interval, System.TimeSpan timeSpan, System.DateTimeOffset? endTime = default(System.DateTimeOffset?), Azure.IoT.TimeSeriesInsights.QueryAggregateSeriesRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateEventsQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, Azure.IoT.TimeSeriesInsights.QueryEventsRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateEventsQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.TimeSpan timeSpan, System.DateTimeOffset? endTime = default(System.DateTimeOffset?), Azure.IoT.TimeSeriesInsights.QueryEventsRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateSeriesQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, Azure.IoT.TimeSeriesInsights.QuerySeriesRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateSeriesQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.TimeSpan timeSpan, System.DateTimeOffset? endTime = default(System.DateTimeOffset?), Azure.IoT.TimeSeriesInsights.QuerySeriesRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class QueryEventsRequestOptions : Azure.IoT.TimeSeriesInsights.QueryRequestOptions { public QueryEventsRequestOptions() { } public int? MaximumNumberOfEvents { get { throw null; } set { } } public System.Collections.Generic.List ProjectedProperties { get { throw null; } } } - public partial class QueryRequest - { - public QueryRequest() { } - public Azure.IoT.TimeSeriesInsights.AggregateSeries AggregateSeries { get { throw null; } set { } } - public Azure.IoT.TimeSeriesInsights.GetEvents GetEvents { get { throw null; } set { } } - public Azure.IoT.TimeSeriesInsights.GetSeries GetSeries { get { throw null; } set { } } - } public abstract partial class QueryRequestOptions { protected QueryRequestOptions() { } @@ -292,10 +163,10 @@ public TimeSeriesExpression(string tsx) { } } public partial class TimeSeriesHierarchy { - public TimeSeriesHierarchy(string name, Azure.IoT.TimeSeriesInsights.Models.TimeSeriesHierarchySource source) { } + public TimeSeriesHierarchy(string name, Azure.IoT.TimeSeriesInsights.TimeSeriesHierarchySource source) { } public string Id { get { throw null; } set { } } public string Name { get { throw null; } set { } } - public Azure.IoT.TimeSeriesInsights.Models.TimeSeriesHierarchySource Source { get { throw null; } set { } } + public Azure.IoT.TimeSeriesInsights.TimeSeriesHierarchySource Source { get { throw null; } set { } } } public partial class TimeSeriesHierarchyOperationResult { @@ -303,6 +174,11 @@ internal TimeSeriesHierarchyOperationResult() { } public Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError Error { get { throw null; } } public Azure.IoT.TimeSeriesInsights.TimeSeriesHierarchy Hierarchy { get { throw null; } } } + public partial class TimeSeriesHierarchySource + { + public TimeSeriesHierarchySource() { } + public System.Collections.Generic.IList InstanceFieldNames { get { throw null; } } + } public partial class TimeSeriesId { public TimeSeriesId(string key1) { } @@ -315,18 +191,35 @@ public partial class TimeSeriesIdProperty { internal TimeSeriesIdProperty() { } public string Name { get { throw null; } } - public Azure.IoT.TimeSeriesInsights.Models.TimeSeriesIdPropertyTypes? Type { get { throw null; } } + public Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyTypes? Type { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TimeSeriesIdPropertyTypes : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TimeSeriesIdPropertyTypes(string value) { throw null; } + public static Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyTypes String { get { throw null; } } + public bool Equals(Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyTypes other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyTypes left, Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyTypes right) { throw null; } + public static implicit operator Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyTypes (string value) { throw null; } + public static bool operator !=(Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyTypes left, Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyTypes right) { throw null; } + public override string ToString() { throw null; } } public partial class TimeSeriesInsightsClient { protected TimeSeriesInsightsClient() { } public TimeSeriesInsightsClient(string environmentFqdn, Azure.Core.TokenCredential credential) { } public TimeSeriesInsightsClient(string environmentFqdn, Azure.Core.TokenCredential credential, Azure.IoT.TimeSeriesInsights.TimeSeriesInsightsClientOptions options) { } - public virtual Azure.IoT.TimeSeriesInsights.HierarchiesClient Hierarchies { get { throw null; } } - public virtual Azure.IoT.TimeSeriesInsights.InstancesClient Instances { get { throw null; } } - public virtual Azure.IoT.TimeSeriesInsights.ModelSettingsClient ModelSettings { get { throw null; } } - public virtual Azure.IoT.TimeSeriesInsights.QueryClient Query { get { throw null; } } - public virtual Azure.IoT.TimeSeriesInsights.TypesClient Types { get { throw null; } } + public virtual Azure.IoT.TimeSeriesInsights.TimeSeriesInsightsHierarchies Hierarchies { get { throw null; } } + public virtual Azure.IoT.TimeSeriesInsights.TimeSeriesInsightsInstances Instances { get { throw null; } } + public virtual Azure.IoT.TimeSeriesInsights.TimeSeriesInsightsModelSettings ModelSettings { get { throw null; } } + public virtual Azure.IoT.TimeSeriesInsights.TimeSeriesInsightsQuery Query { get { throw null; } } + public virtual Azure.IoT.TimeSeriesInsights.TimeSeriesInsightsTypes Types { get { throw null; } } } public partial class TimeSeriesInsightsClientOptions : Azure.Core.ClientOptions { @@ -337,6 +230,76 @@ public enum ServiceVersion V2020_07_31 = 1, } } + public partial class TimeSeriesInsightsHierarchies + { + protected TimeSeriesInsightsHierarchies() { } + public virtual Azure.Response CreateOrReplace(System.Collections.Generic.IEnumerable timeSeriesHierarchies, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrReplaceAsync(System.Collections.Generic.IEnumerable timeSeriesHierarchies, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteById(System.Collections.Generic.IEnumerable timeSeriesHierarchyIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteByIdAsync(System.Collections.Generic.IEnumerable timeSeriesHierarchyIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteByName(System.Collections.Generic.IEnumerable timeSeriesHierarchyNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteByNameAsync(System.Collections.Generic.IEnumerable timeSeriesHierarchyNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetById(System.Collections.Generic.IEnumerable timeSeriesHierarchyIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetByIdAsync(System.Collections.Generic.IEnumerable timeSeriesHierarchyIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetByName(System.Collections.Generic.IEnumerable timeSeriesHierarchyNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetByNameAsync(System.Collections.Generic.IEnumerable timeSeriesHierarchyNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class TimeSeriesInsightsInstances + { + protected TimeSeriesInsightsInstances() { } + public virtual Azure.Response CreateOrReplace(System.Collections.Generic.IEnumerable timeSeriesInstances, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrReplaceAsync(System.Collections.Generic.IEnumerable timeSeriesInstances, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Delete(System.Collections.Generic.IEnumerable timeSeriesIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Delete(System.Collections.Generic.IEnumerable timeSeriesNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteAsync(System.Collections.Generic.IEnumerable timeSeriesIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteAsync(System.Collections.Generic.IEnumerable timeSeriesNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Collections.Generic.IEnumerable timeSeriesIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Collections.Generic.IEnumerable timeSeriesNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Collections.Generic.IEnumerable timeSeriesIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Collections.Generic.IEnumerable timeSeriesNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Replace(System.Collections.Generic.IEnumerable timeSeriesInstances, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReplaceAsync(System.Collections.Generic.IEnumerable timeSeriesInstances, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class TimeSeriesInsightsModelSettings + { + protected TimeSeriesInsightsModelSettings() { } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UpdateDefaultTypeId(string defaultTypeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateDefaultTypeIdAsync(string defaultTypeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UpdateName(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateNameAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class TimeSeriesInsightsQuery + { + protected TimeSeriesInsightsQuery() { } + public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateAggregateSeriesQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.TimeSpan interval, Azure.IoT.TimeSeriesInsights.QueryAggregateSeriesRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateAggregateSeriesQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.TimeSpan interval, System.TimeSpan timeSpan, System.DateTimeOffset? endTime = default(System.DateTimeOffset?), Azure.IoT.TimeSeriesInsights.QueryAggregateSeriesRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateEventsQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, Azure.IoT.TimeSeriesInsights.QueryEventsRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateEventsQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.TimeSpan timeSpan, System.DateTimeOffset? endTime = default(System.DateTimeOffset?), Azure.IoT.TimeSeriesInsights.QueryEventsRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateSeriesQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, Azure.IoT.TimeSeriesInsights.QuerySeriesRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.IoT.TimeSeriesInsights.QueryAnalyzer CreateSeriesQueryAnalyzer(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, System.TimeSpan timeSpan, System.DateTimeOffset? endTime = default(System.DateTimeOffset?), Azure.IoT.TimeSeriesInsights.QuerySeriesRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class TimeSeriesInsightsTypes + { + protected TimeSeriesInsightsTypes() { } + public virtual Azure.Response CreateOrReplace(System.Collections.Generic.IEnumerable timeSeriesTypes, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrReplaceAsync(System.Collections.Generic.IEnumerable timeSeriesTypes, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteById(System.Collections.Generic.IEnumerable timeSeriesTypeIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteByIdAsync(System.Collections.Generic.IEnumerable timeSeriesTypeIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteByName(System.Collections.Generic.IEnumerable timeSeriesTypeNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteByNameAsync(System.Collections.Generic.IEnumerable timeSeriesTypeNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetById(System.Collections.Generic.IEnumerable timeSeriesTypeIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetByIdAsync(System.Collections.Generic.IEnumerable timeSeriesTypeIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetByName(System.Collections.Generic.IEnumerable timeSeriesTypeNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetByNameAsync(System.Collections.Generic.IEnumerable timeSeriesTypeNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetTypes(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetTypesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class TimeSeriesInstance { public TimeSeriesInstance(Azure.IoT.TimeSeriesInsights.TimeSeriesId timeSeriesId, string typeId) { } @@ -455,154 +418,4 @@ public partial class TimeSeriesVariable public TimeSeriesVariable() { } public Azure.IoT.TimeSeriesInsights.TimeSeriesExpression Filter { get { throw null; } set { } } } - public partial class TypesBatchRequest - { - public TypesBatchRequest() { } - public Azure.IoT.TimeSeriesInsights.TypesRequestBatchGetOrDelete Delete { get { throw null; } set { } } - public Azure.IoT.TimeSeriesInsights.TypesRequestBatchGetOrDelete Get { get { throw null; } set { } } - public System.Collections.Generic.IList Put { get { throw null; } } - } - public partial class TypesBatchResponse - { - internal TypesBatchResponse() { } - public System.Collections.Generic.IReadOnlyList Delete { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Get { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Put { get { throw null; } } - } - public partial class TypesClient - { - protected TypesClient() { } - public virtual Azure.Response CreateOrReplace(System.Collections.Generic.IEnumerable timeSeriesTypes, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrReplaceAsync(System.Collections.Generic.IEnumerable timeSeriesTypes, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteById(System.Collections.Generic.IEnumerable timeSeriesTypeIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> DeleteByIdAsync(System.Collections.Generic.IEnumerable timeSeriesTypeIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteByName(System.Collections.Generic.IEnumerable timeSeriesTypeNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> DeleteByNameAsync(System.Collections.Generic.IEnumerable timeSeriesTypeNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetById(System.Collections.Generic.IEnumerable timeSeriesTypeIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetByIdAsync(System.Collections.Generic.IEnumerable timeSeriesTypeIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetByName(System.Collections.Generic.IEnumerable timeSeriesTypeNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetByNameAsync(System.Collections.Generic.IEnumerable timeSeriesTypeNames, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetTypes(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetTypesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class TypesRequestBatchGetOrDelete - { - public TypesRequestBatchGetOrDelete() { } - public System.Collections.Generic.IList Names { get { throw null; } } - public System.Collections.Generic.IList TypeIds { get { throw null; } } - } -} -namespace Azure.IoT.TimeSeriesInsights.Models -{ - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HierarchiesExpandKind : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public HierarchiesExpandKind(string value) { throw null; } - public static Azure.IoT.TimeSeriesInsights.Models.HierarchiesExpandKind OneLevel { get { throw null; } } - public static Azure.IoT.TimeSeriesInsights.Models.HierarchiesExpandKind UntilChildren { get { throw null; } } - public bool Equals(Azure.IoT.TimeSeriesInsights.Models.HierarchiesExpandKind other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.IoT.TimeSeriesInsights.Models.HierarchiesExpandKind left, Azure.IoT.TimeSeriesInsights.Models.HierarchiesExpandKind right) { throw null; } - public static implicit operator Azure.IoT.TimeSeriesInsights.Models.HierarchiesExpandKind (string value) { throw null; } - public static bool operator !=(Azure.IoT.TimeSeriesInsights.Models.HierarchiesExpandKind left, Azure.IoT.TimeSeriesInsights.Models.HierarchiesExpandKind right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HierarchiesSortBy : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public HierarchiesSortBy(string value) { throw null; } - public static Azure.IoT.TimeSeriesInsights.Models.HierarchiesSortBy CumulativeInstanceCount { get { throw null; } } - public static Azure.IoT.TimeSeriesInsights.Models.HierarchiesSortBy Name { get { throw null; } } - public bool Equals(Azure.IoT.TimeSeriesInsights.Models.HierarchiesSortBy other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.IoT.TimeSeriesInsights.Models.HierarchiesSortBy left, Azure.IoT.TimeSeriesInsights.Models.HierarchiesSortBy right) { throw null; } - public static implicit operator Azure.IoT.TimeSeriesInsights.Models.HierarchiesSortBy (string value) { throw null; } - public static bool operator !=(Azure.IoT.TimeSeriesInsights.Models.HierarchiesSortBy left, Azure.IoT.TimeSeriesInsights.Models.HierarchiesSortBy right) { throw null; } - public override string ToString() { throw null; } - } - public partial class InstanceHitHighlights - { - internal InstanceHitHighlights() { } - public string Description { get { throw null; } } - public System.Collections.Generic.IReadOnlyList HierarchyIds { get { throw null; } } - public System.Collections.Generic.IReadOnlyList HierarchyNames { get { throw null; } } - public System.Collections.Generic.IReadOnlyList InstanceFieldNames { get { throw null; } } - public System.Collections.Generic.IReadOnlyList InstanceFieldValues { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyList TimeSeriesId { get { throw null; } } - public string TypeName { get { throw null; } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct InstancesSortBy : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public InstancesSortBy(string value) { throw null; } - public static Azure.IoT.TimeSeriesInsights.Models.InstancesSortBy DisplayName { get { throw null; } } - public static Azure.IoT.TimeSeriesInsights.Models.InstancesSortBy Rank { get { throw null; } } - public bool Equals(Azure.IoT.TimeSeriesInsights.Models.InstancesSortBy other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.IoT.TimeSeriesInsights.Models.InstancesSortBy left, Azure.IoT.TimeSeriesInsights.Models.InstancesSortBy right) { throw null; } - public static implicit operator Azure.IoT.TimeSeriesInsights.Models.InstancesSortBy (string value) { throw null; } - public static bool operator !=(Azure.IoT.TimeSeriesInsights.Models.InstancesSortBy left, Azure.IoT.TimeSeriesInsights.Models.InstancesSortBy right) { throw null; } - public override string ToString() { throw null; } - } - public partial class InterpolationBoundary - { - public InterpolationBoundary() { } - public System.TimeSpan? Span { get { throw null; } set { } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct InterpolationKind : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public InterpolationKind(string value) { throw null; } - public static Azure.IoT.TimeSeriesInsights.Models.InterpolationKind Linear { get { throw null; } } - public static Azure.IoT.TimeSeriesInsights.Models.InterpolationKind Step { get { throw null; } } - public bool Equals(Azure.IoT.TimeSeriesInsights.Models.InterpolationKind other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.IoT.TimeSeriesInsights.Models.InterpolationKind left, Azure.IoT.TimeSeriesInsights.Models.InterpolationKind right) { throw null; } - public static implicit operator Azure.IoT.TimeSeriesInsights.Models.InterpolationKind (string value) { throw null; } - public static bool operator !=(Azure.IoT.TimeSeriesInsights.Models.InterpolationKind left, Azure.IoT.TimeSeriesInsights.Models.InterpolationKind right) { throw null; } - public override string ToString() { throw null; } - } - public partial class TimeSeriesHierarchySource - { - public TimeSeriesHierarchySource() { } - public System.Collections.Generic.IList InstanceFieldNames { get { throw null; } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct TimeSeriesIdPropertyTypes : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public TimeSeriesIdPropertyTypes(string value) { throw null; } - public static Azure.IoT.TimeSeriesInsights.Models.TimeSeriesIdPropertyTypes String { get { throw null; } } - public bool Equals(Azure.IoT.TimeSeriesInsights.Models.TimeSeriesIdPropertyTypes other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.IoT.TimeSeriesInsights.Models.TimeSeriesIdPropertyTypes left, Azure.IoT.TimeSeriesInsights.Models.TimeSeriesIdPropertyTypes right) { throw null; } - public static implicit operator Azure.IoT.TimeSeriesInsights.Models.TimeSeriesIdPropertyTypes (string value) { throw null; } - public static bool operator !=(Azure.IoT.TimeSeriesInsights.Models.TimeSeriesIdPropertyTypes left, Azure.IoT.TimeSeriesInsights.Models.TimeSeriesIdPropertyTypes right) { throw null; } - public override string ToString() { throw null; } - } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples/TimeSeriesInsightsClientSample/HierarchiesSamples.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples/TimeSeriesInsightsClientSample/HierarchiesSamples.cs index 2b0d9877ea395..2a9802a7f0190 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples/TimeSeriesInsightsClientSample/HierarchiesSamples.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples/TimeSeriesInsightsClientSample/HierarchiesSamples.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using Azure.IoT.TimeSeriesInsights.Models; using static Azure.IoT.TimeSeriesInsights.Samples.SampleLogger; namespace Azure.IoT.TimeSeriesInsights.Samples diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/AggregateSeries.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/AggregateSeries.Serialization.cs index e3c8d137a99e5..36028826eafda 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/AggregateSeries.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/AggregateSeries.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights /// order to turn Time Series Ids from a strongly typed object to an list of objects that /// the service can understand, and vice versa. /// - public partial class AggregateSeries : IUtf8JsonSerializable + internal partial class AggregateSeries : IUtf8JsonSerializable { // The use of fully qualified name for IUtf8JsonSerializable is a work around until this // issue is fixed: https://github.com/Azure/autorest.csharp/issues/793 diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/AggregateSeries.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/AggregateSeries.cs index aa30982dcb7db..629d2403c80b2 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/AggregateSeries.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/AggregateSeries.cs @@ -13,7 +13,7 @@ namespace Azure.IoT.TimeSeriesInsights /// [CodeGenModel("AggregateSeries")] [CodeGenSuppress("AggregateSeries", typeof(IEnumerable), typeof(DateTimeRange), typeof(TimeSpan))] - public partial class AggregateSeries + internal partial class AggregateSeries { // Autorest does not support changing type for properties. In order to turn TimeSeriesId // from a list of objects to a strongly typed object, TimeSeriesId has been renamed to diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetEvents.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetEvents.Serialization.cs index 24726d3455581..9b383c85e2f96 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetEvents.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetEvents.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights /// order to turn Time Series Ids from a strongly typed object to an list of objects that /// the service can understand, and vice versa. /// - public partial class GetEvents : IUtf8JsonSerializable + internal partial class GetEvents : IUtf8JsonSerializable { // The use of fully qualified name for IUtf8JsonSerializable is a work around until this // issue is fixed: https://github.com/Azure/autorest.csharp/issues/793 diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetEvents.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetEvents.cs index 755835490372b..619f019804068 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetEvents.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetEvents.cs @@ -12,7 +12,7 @@ namespace Azure.IoT.TimeSeriesInsights /// [CodeGenModel("GetEvents")] [CodeGenSuppress("GetEvents", typeof(IEnumerable), typeof(DateTimeRange))] - public partial class GetEvents + internal partial class GetEvents { // Autorest does not support changing type for properties. In order to turn TimeSeriesId // from a list of objects to a strongly typed object, TimeSeriesId has been renamed to diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetSeries.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetSeries.Serialization.cs index e9c722218f04a..87f036bbb60df 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetSeries.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetSeries.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights /// order to turn Time Series Ids from a strongly typed object to an list of objects that /// the service can understand, and vice versa. /// - public partial class GetSeries : IUtf8JsonSerializable + internal partial class GetSeries : IUtf8JsonSerializable { // The use of fully qualified name for IUtf8JsonSerializable is a work around until this // issue is fixed: https://github.com/Azure/autorest.csharp/issues/793 diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetSeries.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetSeries.cs index 7e69858b592ba..d425d515ab32b 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetSeries.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/GetSeries.cs @@ -12,7 +12,7 @@ namespace Azure.IoT.TimeSeriesInsights /// [CodeGenModel("GetSeries")] [CodeGenSuppress("GetSeries", typeof(IEnumerable), typeof(DateTimeRange))] - public partial class GetSeries + internal partial class GetSeries { // Autorest does not support changing type for properties. In order to turn TimeSeriesId // from a list of objects to a strongly typed object, TimeSeriesId has been renamed to diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesBatchResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesBatchResponse.Serialization.cs index eafed291cd943..241a380690045 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesBatchResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesBatchResponse.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.IoT.TimeSeriesInsights /// from Time Series Insights into a HierarchiesBatchResponse object. /// [CodeGenModel("HierarchiesBatchResponse")] - public partial class HierarchiesBatchResponse + internal partial class HierarchiesBatchResponse { // The purpose of overriding this method is to protect against an InvalidOperationException // that is being thrown by the generated code. More specifically, the exception is being thrown diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesExpandKind.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesExpandKind.cs new file mode 100644 index 0000000000000..2d5106b4ec791 --- /dev/null +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesExpandKind.cs @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.IoT.TimeSeriesInsights +{ + [CodeGenModel("HierarchiesExpandKind")] + internal readonly partial struct HierarchiesExpandKind + { + } +} diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesSortBy.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesSortBy.cs new file mode 100644 index 0000000000000..0f490a28dd461 --- /dev/null +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/HierarchiesSortBy.cs @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.IoT.TimeSeriesInsights +{ + [CodeGenModel("HierarchiesSortBy")] + internal readonly partial struct HierarchiesSortBy + { + } +} diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstanceHitHighlights.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstanceHitHighlights.cs new file mode 100644 index 0000000000000..4da8892356279 --- /dev/null +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstanceHitHighlights.cs @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.IoT.TimeSeriesInsights +{ + [CodeGenModel("InstanceHitHighlights")] + internal partial class InstanceHitHighlights + { + } +} diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesBatchResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesBatchResponse.Serialization.cs index 45fe5597c1bb2..3e02aa41e9aa3 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesBatchResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesBatchResponse.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.IoT.TimeSeriesInsights /// from Time Series Insights into a InstancesBatchResponse object. /// [CodeGenModel("InstancesBatchResponse")] - public partial class InstancesBatchResponse + internal partial class InstancesBatchResponse { // The purpose of overriding this method is to protect against an InvalidOperationException // that is being thrown by the generated code. More specifically, the exception is being thrown diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesRequestBatchGetOrDelete.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesRequestBatchGetOrDelete.Serialization.cs index edd2bc2b0bb9a..8ce3c4492ee64 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesRequestBatchGetOrDelete.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesRequestBatchGetOrDelete.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights /// This class definition overrides serialization implementation in order to turn Time /// Series Ids from a strongly typed object to an list of objects that the service can understand. /// - public partial class InstancesRequestBatchGetOrDelete : IUtf8JsonSerializable + internal partial class InstancesRequestBatchGetOrDelete : IUtf8JsonSerializable { // This class declaration overrides the logic that serializes the object. More specifically, to // serialize "timeSeriesIds". Since TimeSeriesIds changed from a list of objects to a strongly diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesRequestBatchGetOrDelete.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesRequestBatchGetOrDelete.cs index 5b71759ae1d2e..22b33560f41eb 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesRequestBatchGetOrDelete.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesRequestBatchGetOrDelete.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights /// Exactly one of "timeSeriesIds" or "names" must be set. /// [CodeGenModel("InstancesRequestBatchGetOrDelete")] - public partial class InstancesRequestBatchGetOrDelete + internal partial class InstancesRequestBatchGetOrDelete { // Autorest does not support changing type for properties. In order to turn TimeSeriesId // from a list of objects to a strongly typed object, TimeSeriesId has been renamed to diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesSortBy.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesSortBy.cs new file mode 100644 index 0000000000000..509b230c2540d --- /dev/null +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InstancesSortBy.cs @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.IoT.TimeSeriesInsights +{ + [CodeGenModel("InstancesSortBy")] + internal readonly partial struct InstancesSortBy + { + } +} diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InterpolationBoundary.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InterpolationBoundary.cs new file mode 100644 index 0000000000000..9e6edce0a2777 --- /dev/null +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InterpolationBoundary.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.IoT.TimeSeriesInsights +{ + /// + /// The time range to the left and right of the search span to be used for Interpolation. This is helpful in scenarios where the data points are + /// missing close to the start or end of the input search span. Can be null. + /// + [CodeGenModel("InterpolationBoundary")] + public partial class InterpolationBoundary + { + } +} diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InterpolationKind.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InterpolationKind.cs new file mode 100644 index 0000000000000..5655976c6a2ae --- /dev/null +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/InterpolationKind.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.IoT.TimeSeriesInsights +{ + /// + ///The type of interpolation technique : "Linear" or "Step". + /// + [CodeGenModel("InterpolationKind")] + public readonly partial struct InterpolationKind + { + } +} diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TimeSeriesHierarchySource.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TimeSeriesHierarchySource.cs new file mode 100644 index 0000000000000..9bdde6d83b388 --- /dev/null +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TimeSeriesHierarchySource.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.IoT.TimeSeriesInsights +{ + /// + ///Definition of how time series hierarchy tree levels are created. + /// + [CodeGenModel("TimeSeriesHierarchySource")] + public partial class TimeSeriesHierarchySource + { + } +} diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TimeSeriesIdPropertyTypes.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TimeSeriesIdPropertyTypes.cs new file mode 100644 index 0000000000000..dfb5d5099989b --- /dev/null +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TimeSeriesIdPropertyTypes.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.IoT.TimeSeriesInsights +{ + /// + /// The type of the property. Currently, only "String" is supported. + /// + [CodeGenModel("TimeSeriesIdPropertyTypes")] + public readonly partial struct TimeSeriesIdPropertyTypes + { + } +} diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TypesBatchResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TypesBatchResponse.Serialization.cs index 1c461be0f5726..66ccadc6e03f9 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TypesBatchResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Customized/Models/TypesBatchResponse.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.IoT.TimeSeriesInsights /// from Time Series Insights into a TypesBatchResponse object. /// [CodeGenModel("TypesBatchResponse")] - public partial class TypesBatchResponse + internal partial class TypesBatchResponse { // The purpose of overriding this method is to protect against an InvalidOperationException // that is being thrown by the generated code. More specifically, the exception is being thrown diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.Serialization.cs index 87af62e4601a6..d0dbde91f2bb5 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class AggregateSeries : IUtf8JsonSerializable + internal partial class AggregateSeries : IUtf8JsonSerializable { } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.cs index 35e190110dd6f..140fa835c6df1 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.cs @@ -13,7 +13,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Aggregate Series query. Allows to calculate an aggregated time series from events for a given Time Series ID and search span. - public partial class AggregateSeries + internal partial class AggregateSeries { /// The range of time on which the query is executed. Cannot be null. public DateTimeRange SearchSpan { get; } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.Serialization.cs index 01244c51d90cb..56591ed5d721a 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class GetEvents : IUtf8JsonSerializable + internal partial class GetEvents : IUtf8JsonSerializable { } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.cs index 13f3d1a5b6105..587c36342ac22 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.cs @@ -13,7 +13,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Get Events query. Allows to retrieve raw events for a given Time Series ID and search span. - public partial class GetEvents + internal partial class GetEvents { /// The range of time on which the query is executed. Cannot be null. public DateTimeRange SearchSpan { get; } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs index ed147fac9901e..b09bb276f1036 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class GetHierarchiesPage + internal partial class GetHierarchiesPage { internal static GetHierarchiesPage DeserializeGetHierarchiesPage(JsonElement element) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.cs index 72ec9420eccd6..f3bc66e4655e7 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Partial list of time series hierarchies returned in a single request. - public partial class GetHierarchiesPage : PagedResponse + internal partial class GetHierarchiesPage : PagedResponse { /// Initializes a new instance of GetHierarchiesPage. internal GetHierarchiesPage() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs index 323dc3f71a44a..591f586b50b58 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class GetInstancesPage + internal partial class GetInstancesPage { internal static GetInstancesPage DeserializeGetInstancesPage(JsonElement element) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.cs index 80fc85515d92e..6a03a92e14705 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Partial list of time series instances returned in a single request. - public partial class GetInstancesPage : PagedResponse + internal partial class GetInstancesPage : PagedResponse { /// Initializes a new instance of GetInstancesPage. internal GetInstancesPage() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.Serialization.cs index d7666f712677f..51f4735a33f1d 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class GetSeries : IUtf8JsonSerializable + internal partial class GetSeries : IUtf8JsonSerializable { } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.cs index 212ae161219c7..e13ef7f9b4658 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.cs @@ -13,7 +13,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Get Series query. Allows to retrieve time series of calculated variable values from events for a given Time Series ID and search span. - public partial class GetSeries + internal partial class GetSeries { /// The range of time on which the query is executed. Cannot be null. public DateTimeRange SearchSpan { get; } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs index db9f5d0c64e16..4661b42cc83fb 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class GetTypesPage + internal partial class GetTypesPage { internal static GetTypesPage DeserializeGetTypesPage(JsonElement element) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.cs index 2aefa2b772d09..ca764e25eb5b2 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Partial list of time series types returned in a single request. - public partial class GetTypesPage : PagedResponse + internal partial class GetTypesPage : PagedResponse { /// Initializes a new instance of GetTypesPage. internal GetTypesPage() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.Serialization.cs index 1c17a4e226b4a..b3f28b6502313 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class HierarchiesBatchRequest : IUtf8JsonSerializable + internal partial class HierarchiesBatchRequest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.cs index afb43e3126006..8f993eafd5db1 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Request to perform a single operation on a batch of hierarchies. Exactly one of "get", "put" or "delete" must be set. - public partial class HierarchiesBatchRequest + internal partial class HierarchiesBatchRequest { /// Initializes a new instance of HierarchiesBatchRequest. public HierarchiesBatchRequest() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.Serialization.cs index b2efec1e474f6..ae9420a5501fb 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class HierarchiesBatchResponse + internal partial class HierarchiesBatchResponse { } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.cs index 547b8937691bc..a380d30a248dd 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Response of a single operation on a batch of time series hierarchies. Only one of "get", "put" or "delete" will be set. - public partial class HierarchiesBatchResponse + internal partial class HierarchiesBatchResponse { /// Initializes a new instance of HierarchiesBatchResponse. internal HierarchiesBatchResponse() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandKind.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandKind.cs index 7b0ed2332a4cf..9f2aa8c929dbf 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandKind.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandKind.cs @@ -8,10 +8,10 @@ using System; using System.ComponentModel; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { /// Kind of the expansion of hierarchy nodes. When it is set to 'UntilChildren', the hierarchy nodes are expanded recursively until there is more than one child. When it is set to 'OneLevel', the hierarchies are expanded only at the single level matching path search instances parameter. Optional, default is 'UntilChildren'. - public readonly partial struct HierarchiesExpandKind : IEquatable + internal readonly partial struct HierarchiesExpandKind : IEquatable { private readonly string _value; diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandParameter.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandParameter.cs index 200055cefdaab..5765b1e2b3510 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandParameter.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandParameter.cs @@ -5,8 +5,6 @@ #nullable disable -using Azure.IoT.TimeSeriesInsights.Models; - namespace Azure.IoT.TimeSeriesInsights { /// Definition of whether to expand hierarchy nodes in the same search instances call. diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.Serialization.cs index 7b8da9db4186f..7897160f969bd 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class HierarchiesRequestBatchGetDelete : IUtf8JsonSerializable + internal partial class HierarchiesRequestBatchGetDelete : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.cs index 9b65fe60c15b6..92427e1b1743e 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Request to get or delete multiple time series hierarchies. Exactly one of "hierarchyIds" or "names" must be set. - public partial class HierarchiesRequestBatchGetDelete + internal partial class HierarchiesRequestBatchGetDelete { /// Initializes a new instance of HierarchiesRequestBatchGetDelete. public HierarchiesRequestBatchGetDelete() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortBy.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortBy.cs index 4aa4f4e35280f..d9bcf72d3941e 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortBy.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortBy.cs @@ -8,10 +8,10 @@ using System; using System.ComponentModel; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { /// Value to use for hierarchy node sorting. When it is set to 'CumulativeInstanceCount', the returned hierarchies are sorted based on the total instances belonging to the hierarchy node and its child hierarchy nodes. When it is set to 'Name', the returned hierarchies are sorted based on the hierarchy name. Optional, default is 'CumulativeInstanceCount'. - public readonly partial struct HierarchiesSortBy : IEquatable + internal readonly partial struct HierarchiesSortBy : IEquatable { private readonly string _value; diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortParameter.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortParameter.cs index 9ad912488d76c..659900933472b 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortParameter.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortParameter.cs @@ -5,8 +5,6 @@ #nullable disable -using Azure.IoT.TimeSeriesInsights.Models; - namespace Azure.IoT.TimeSeriesInsights { /// Definition of sorting of hierarchy nodes. diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.Serialization.cs index c617295bd7026..527f145bc448a 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.IoT.TimeSeriesInsights.Models; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.cs index 8c4f3c77caf35..34c7c07ed4a03 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.Core; -using Azure.IoT.TimeSeriesInsights.Models; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs index d31d4e10bc909..0371e9975b4df 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs @@ -9,9 +9,9 @@ using System.Text.Json; using Azure.Core; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { - public partial class InstanceHitHighlights + internal partial class InstanceHitHighlights { internal static InstanceHitHighlights DeserializeInstanceHitHighlights(JsonElement element) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.cs index 07a6bc11c9719..412da47d3caf2 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.cs @@ -8,10 +8,10 @@ using System.Collections.Generic; using Azure.Core; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { /// Highlighted text of time series instance to be displayed to the user. Highlighting inserts <hit> and </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 partial class InstanceHitHighlights + internal partial class InstanceHitHighlights { /// Initializes a new instance of InstanceHitHighlights. internal InstanceHitHighlights() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.Serialization.cs index e9db62add7f10..b8f182d10cb46 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class InstancesBatchRequest : IUtf8JsonSerializable + internal partial class InstancesBatchRequest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.cs index 8106f41c171d4..0f45c20c0fb20 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Request to perform a single operation on a batch of instances. Exactly one of "get", "put", "update" or "delete" must be set. - public partial class InstancesBatchRequest + internal partial class InstancesBatchRequest { /// Initializes a new instance of InstancesBatchRequest. public InstancesBatchRequest() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.Serialization.cs index 9f11b9bcd4fa9..94489e3f0bc8f 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class InstancesBatchResponse + internal partial class InstancesBatchResponse { } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.cs index 9a357e6938b87..02b6f2b8b241d 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Response of a single operation on a batch of instances. Only one of "get", "put", "update" or "delete" will be set based on the request. - public partial class InstancesBatchResponse + internal partial class InstancesBatchResponse { /// Initializes a new instance of InstancesBatchResponse. internal InstancesBatchResponse() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.Serialization.cs index c8f89390eb140..964d61ae9747a 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class InstancesRequestBatchGetOrDelete : IUtf8JsonSerializable + internal partial class InstancesRequestBatchGetOrDelete : IUtf8JsonSerializable { } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.cs index 8c2e39d0567d7..894be50bf2d8c 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Request to get or delete instances by time series IDs or time series names. Exactly one of "timeSeriesIds" or "names" must be set. - public partial class InstancesRequestBatchGetOrDelete + internal partial class InstancesRequestBatchGetOrDelete { /// List of names of the time series instances to return or delete. public IList Names { get; } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortBy.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortBy.cs index a27a15cb8078b..cc304810111a0 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortBy.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortBy.cs @@ -8,10 +8,10 @@ using System; using System.ComponentModel; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { /// Value to use for sorting of the time series instances before being returned by search instances call. When it is set to 'Rank', the returned instances are sorted based on the relevance. When it is set to 'DisplayName', the returned results are sorted based on the display name. Display name is the name of the instance if it exists, otherwise, display name is the time series ID. Default is 'Rank'. - public readonly partial struct InstancesSortBy : IEquatable + internal readonly partial struct InstancesSortBy : IEquatable { private readonly string _value; diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortParameter.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortParameter.cs index a7780a4fdd528..26fbe8a9c954d 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortParameter.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortParameter.cs @@ -5,8 +5,6 @@ #nullable disable -using Azure.IoT.TimeSeriesInsights.Models; - namespace Azure.IoT.TimeSeriesInsights { /// Definition of how time series instances are sorted before being returned by search instances call. diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.Serialization.cs index db7f7102b6540..a4e276fcc6b28 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.Serialization.cs @@ -9,7 +9,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { public partial class InterpolationBoundary : IUtf8JsonSerializable { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.cs index 528904584ffd3..ff49012ea640a 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.cs @@ -7,7 +7,7 @@ using System; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { /// The time range to the left and right of the search span to be used for Interpolation. This is helpful in scenarios where the data points are missing close to the start or end of the input search span. Can be null. public partial class InterpolationBoundary diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationKind.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationKind.cs index 734fa83b2445e..f5dca635c8a26 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationKind.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationKind.cs @@ -8,7 +8,7 @@ using System; using System.ComponentModel; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { /// The type of interpolation technique : "Linear" or "Step". public readonly partial struct InterpolationKind : IEquatable diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationOperation.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationOperation.Serialization.cs index 3d54c815c42b1..b7eda9e55177e 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationOperation.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationOperation.Serialization.cs @@ -7,7 +7,6 @@ using System.Text.Json; using Azure.Core; -using Azure.IoT.TimeSeriesInsights.Models; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationOperation.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationOperation.cs index 3cb62d6da2e33..aaa7677438a41 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationOperation.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationOperation.cs @@ -5,8 +5,6 @@ #nullable disable -using Azure.IoT.TimeSeriesInsights.Models; - namespace Azure.IoT.TimeSeriesInsights { /// The interpolation operation to be performed on the raw data points. Currently, only sampling of interpolated time series is allowed. Allowed aggregate function - eg: left($value). Can be null if no interpolation needs to be applied. diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.Serialization.cs index d4c8ca2928510..36473ba161d30 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class ModelSettingsResponse + internal partial class ModelSettingsResponse { internal static ModelSettingsResponse DeserializeModelSettingsResponse(JsonElement element) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.cs index a924ffc77e064..1d601d1099fdb 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.cs @@ -8,7 +8,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Response containing full time series model settings which include model name, Time Series ID properties and default type ID. - public partial class ModelSettingsResponse + internal partial class ModelSettingsResponse { /// Initializes a new instance of ModelSettingsResponse. internal ModelSettingsResponse() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.Serialization.cs index 18217a222b81c..f1a3b37ada653 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class QueryRequest : IUtf8JsonSerializable + internal partial class QueryRequest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.cs index a789d7dd80105..e4328cd4440ad 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.cs @@ -8,7 +8,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Request to execute a time series query over events. Exactly one of "getEvents", "getSeries" or "aggregateSeries" must be set. - public partial class QueryRequest + internal partial class QueryRequest { /// Initializes a new instance of QueryRequest. public QueryRequest() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.Serialization.cs index 83aecba35237b..9d0334b8cbb58 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.Serialization.cs @@ -7,7 +7,6 @@ using System.Text.Json; using Azure.Core; -using Azure.IoT.TimeSeriesInsights.Models; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.cs index 5787e3d573040..0a606ddfaaf6b 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.cs @@ -6,7 +6,6 @@ #nullable disable using System; -using Azure.IoT.TimeSeriesInsights.Models; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.Serialization.cs index bce53200b4984..f76e12d5168d6 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.Serialization.cs @@ -9,7 +9,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { public partial class TimeSeriesHierarchySource : IUtf8JsonSerializable { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.cs index 87aaf8907c78d..7835582b5e5b0 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.cs @@ -8,7 +8,7 @@ using System.Collections.Generic; using Azure.Core; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { /// Definition of how time series hierarchy tree levels are created. public partial class TimeSeriesHierarchySource diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.Serialization.cs index 6a06a0852ef67..da761ffd200d1 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.Serialization.cs @@ -7,7 +7,6 @@ using System.Text.Json; using Azure.Core; -using Azure.IoT.TimeSeriesInsights.Models; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.cs index 571fd2f4de67b..944c267e85017 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.cs @@ -5,8 +5,6 @@ #nullable disable -using Azure.IoT.TimeSeriesInsights.Models; - namespace Azure.IoT.TimeSeriesInsights { /// A definition of a single property that can be used in time series ID properties defined during environment creation. diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdPropertyTypes.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdPropertyTypes.cs index 55c3aacddc3c5..f39214d876ae0 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdPropertyTypes.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdPropertyTypes.cs @@ -8,7 +8,7 @@ using System; using System.ComponentModel; -namespace Azure.IoT.TimeSeriesInsights.Models +namespace Azure.IoT.TimeSeriesInsights { /// The type of the property. Currently, only "String" is supported. public readonly partial struct TimeSeriesIdPropertyTypes : IEquatable diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.Serialization.cs index 3b9787c68f71f..9c2474144783e 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class TypesBatchRequest : IUtf8JsonSerializable + internal partial class TypesBatchRequest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.cs index 1dc9bf340dc88..6d351965e05fd 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Request to perform a single operation on a batch of time series types. Exactly one of "get", "put" or "delete" must be set. - public partial class TypesBatchRequest + internal partial class TypesBatchRequest { /// Initializes a new instance of TypesBatchRequest. public TypesBatchRequest() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.Serialization.cs index ca82dbc2aac64..e0e135276fada 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class TypesBatchResponse + internal partial class TypesBatchResponse { } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.cs index 48a735aebb6f7..83cd3282d6d58 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Response of a single operation on a batch of time series types. Exactly one of "get", "put" or "delete" will be set. - public partial class TypesBatchResponse + internal partial class TypesBatchResponse { /// Initializes a new instance of TypesBatchResponse. internal TypesBatchResponse() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.Serialization.cs index f0e7abd0cc386..29e47e2cf821d 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.IoT.TimeSeriesInsights { - public partial class TypesRequestBatchGetOrDelete : IUtf8JsonSerializable + internal partial class TypesRequestBatchGetOrDelete : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.cs index 66da7e344d447..1e052384324dc 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Request to get or delete time series types by IDs or type names. Exactly one of "typeIds" or "names" must be set. - public partial class TypesRequestBatchGetOrDelete + internal partial class TypesRequestBatchGetOrDelete { /// Initializes a new instance of TypesRequestBatchGetOrDelete. public TypesRequestBatchGetOrDelete() diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/GlobalSuppressions.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/GlobalSuppressions.cs index bafa128e3e364..9754dce5d30fa 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/GlobalSuppressions.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/GlobalSuppressions.cs @@ -9,4 +9,3 @@ using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessage("Usage", "AZC0001:Use one of the following pre-approved namespace groups (https://azure.github.io/azure-sdk/registered_namespaces.html): Azure.AI, Azure.Analytics, Azure.Communication, Azure.Data, Azure.DigitalTwins, Azure.Iot, Azure.Learn, Azure.Media, Azure.Management, Azure.Messaging, Azure.Search, Azure.Security, Azure.Storage, Azure.Template, Azure.Identity, Microsoft.Extensions.Azure", Justification = "", Scope = "namespace", Target = "~N:Azure.IoT.TimeSeriesInsights")] -[assembly: SuppressMessage("Usage", "AZC0001:Use one of the following pre-approved namespace groups (https://azure.github.io/azure-sdk/registered_namespaces.html): Azure.AI, Azure.Analytics, Azure.Communication, Azure.Data, Azure.DigitalTwins, Azure.Iot, Azure.Learn, Azure.Media, Azure.Management, Azure.Messaging, Azure.Search, Azure.Security, Azure.Storage, Azure.Template, Azure.Identity, Microsoft.Extensions.Azure", Justification = "", Scope = "namespace", Target = "~N:Azure.IoT.TimeSeriesInsights.Models")] diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs index 16b02d0deafa6..bb86ff123ae5e 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs @@ -29,27 +29,27 @@ public class TimeSeriesInsightsClient /// /// Client to get and update model settings. /// - public virtual ModelSettingsClient ModelSettings { get; private set; } + public virtual TimeSeriesInsightsModelSettings ModelSettings { get; private set; } /// /// Instances client to perform various Time Series Insights instances operations. /// - public virtual InstancesClient Instances { get; private set; } + public virtual TimeSeriesInsightsInstances Instances { get; private set; } /// /// Types client to perform various Time Series Insights types operations. /// - public virtual TypesClient Types { get; private set; } + public virtual TimeSeriesInsightsTypes Types { get; private set; } /// /// Hierarchies client to perform various Time Series Insights hierarchies operations. /// - public virtual HierarchiesClient Hierarchies { get; private set; } + public virtual TimeSeriesInsightsHierarchies Hierarchies { get; private set; } /// /// Query client that can be used to perform query operations on Time Series Insights. /// - public virtual QueryClient Query { get; private set; } + public virtual TimeSeriesInsightsQuery Query { get; private set; } /// /// Creates a new instance of the class. @@ -112,11 +112,11 @@ public TimeSeriesInsightsClient(string environmentFqdn, TokenCredential credenti _timeSeriesHierarchiesRestClient = new TimeSeriesHierarchiesRestClient(_clientDiagnostics, _httpPipeline, environmentFqdn, versionString); _queryRestClient = new QueryRestClient(_clientDiagnostics, _httpPipeline, environmentFqdn, versionString); - ModelSettings = new ModelSettingsClient(_modelSettingsRestClient, _clientDiagnostics); - Instances = new InstancesClient(_timeSeriesInstancesRestClient, _clientDiagnostics); - Types = new TypesClient(_timeSeriesTypesRestClient, _clientDiagnostics); - Hierarchies = new HierarchiesClient(_timeSeriesHierarchiesRestClient, _clientDiagnostics); - Query = new QueryClient(_queryRestClient, _clientDiagnostics); + ModelSettings = new TimeSeriesInsightsModelSettings(_modelSettingsRestClient, _clientDiagnostics); + Instances = new TimeSeriesInsightsInstances(_timeSeriesInstancesRestClient, _clientDiagnostics); + Types = new TimeSeriesInsightsTypes(_timeSeriesTypesRestClient, _clientDiagnostics); + Hierarchies = new TimeSeriesInsightsHierarchies(_timeSeriesHierarchiesRestClient, _clientDiagnostics); + Query = new TimeSeriesInsightsQuery(_queryRestClient, _clientDiagnostics); } /// diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/HierarchiesClient.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsHierarchies.cs similarity index 98% rename from sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/HierarchiesClient.cs rename to sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsHierarchies.cs index 1ec1aef59c0e9..5bd9fd82a9ad1 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/HierarchiesClient.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsHierarchies.cs @@ -12,21 +12,21 @@ namespace Azure.IoT.TimeSeriesInsights { /// - /// Hierarchies client that can be used to perform operations such as creating, listing, replacing and deleting Time Series hierarchies. + /// Perform operations such as creating, listing, replacing and deleting Time Series hierarchies. /// - public class HierarchiesClient + public class TimeSeriesInsightsHierarchies { private readonly TimeSeriesHierarchiesRestClient _hierarchiesRestClient; private readonly ClientDiagnostics _clientDiagnostics; /// - /// Initializes a new instance of HierarchiesClient. This constructor should only be used for mocking purposes. + /// Initializes a new instance of TimeSeriesInsightsHierarchies. This constructor should only be used for mocking purposes. /// - protected HierarchiesClient() + protected TimeSeriesInsightsHierarchies() { } - internal HierarchiesClient(TimeSeriesHierarchiesRestClient hierarchiesRestClient, ClientDiagnostics clientDiagnostics) + internal TimeSeriesInsightsHierarchies(TimeSeriesHierarchiesRestClient hierarchiesRestClient, ClientDiagnostics clientDiagnostics) { Argument.AssertNotNull(hierarchiesRestClient, nameof(hierarchiesRestClient)); Argument.AssertNotNull(clientDiagnostics, nameof(clientDiagnostics)); diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/InstancesClient.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsInstances.cs similarity index 98% rename from sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/InstancesClient.cs rename to sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsInstances.cs index d84461f756def..06c868a3f8600 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/InstancesClient.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsInstances.cs @@ -12,22 +12,21 @@ namespace Azure.IoT.TimeSeriesInsights { /// - /// Time Series Insights instances client that can be used to perform operations such as creating, listing, replacing and deleting - /// Time Series instances. + /// Perform operations such as creating, listing, replacing and deleting Time Series instances. /// - public class InstancesClient + public class TimeSeriesInsightsInstances { private readonly TimeSeriesInstancesRestClient _instancesRestClient; private readonly ClientDiagnostics _clientDiagnostics; /// - /// Initializes a new instance of InstancesClient. This constructor should only be used for mocking purposes. + /// Initializes a new instance of TimeSeriesInsightsInstances. This constructor should only be used for mocking purposes. /// - protected InstancesClient() + protected TimeSeriesInsightsInstances() { } - internal InstancesClient(TimeSeriesInstancesRestClient instancesRestClient, ClientDiagnostics clientDiagnostics) + internal TimeSeriesInsightsInstances(TimeSeriesInstancesRestClient instancesRestClient, ClientDiagnostics clientDiagnostics) { Argument.AssertNotNull(instancesRestClient, nameof(instancesRestClient)); Argument.AssertNotNull(clientDiagnostics, nameof(clientDiagnostics)); diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/ModelSettingsClient.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsModelSettings.cs similarity index 95% rename from sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/ModelSettingsClient.cs rename to sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsModelSettings.cs index 4ad61deb4c7c6..5f14896960c41 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/ModelSettingsClient.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsModelSettings.cs @@ -10,21 +10,21 @@ namespace Azure.IoT.TimeSeriesInsights { /// - /// Model Settings client that can be used to perform operations such as getting and updating Time Series Model configuration settings. + /// Perform operations such as getting and updating Time Series Model configuration settings. /// - public class ModelSettingsClient + public class TimeSeriesInsightsModelSettings { private readonly ModelSettingsRestClient _modelSettingsRestClient; private readonly ClientDiagnostics _clientDiagnostics; /// - /// Initializes a new instance of ModelSettings. This constructor should only be used for mocking purposes. + /// Initializes a new instance of TimeSeriesInsightsModelSettings. This constructor should only be used for mocking purposes. /// - protected ModelSettingsClient() + protected TimeSeriesInsightsModelSettings() { } - internal ModelSettingsClient(ModelSettingsRestClient modelSettingsRestClient, ClientDiagnostics clientDiagnostics) + internal TimeSeriesInsightsModelSettings(ModelSettingsRestClient modelSettingsRestClient, ClientDiagnostics clientDiagnostics) { Argument.AssertNotNull(modelSettingsRestClient, nameof(modelSettingsRestClient)); Argument.AssertNotNull(clientDiagnostics, nameof(clientDiagnostics)); diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/QueryClient.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsQuery.cs similarity index 98% rename from sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/QueryClient.cs rename to sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsQuery.cs index 875085273e1b2..a0876c15be969 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/QueryClient.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsQuery.cs @@ -11,19 +11,19 @@ namespace Azure.IoT.TimeSeriesInsights /// /// Query client that can be used to query for events, series and aggregate series on Time Series Insights. /// - public class QueryClient + public class TimeSeriesInsightsQuery { private readonly QueryRestClient _queryRestClient; private readonly ClientDiagnostics _clientDiagnostics; /// - /// Initializes a new instance of QueryClient. This constructor should only be used for mocking purposes. + /// Initializes a new instance of TimeSeriesInsightsQuery. This constructor should only be used for mocking purposes. /// - protected QueryClient() + protected TimeSeriesInsightsQuery() { } - internal QueryClient(QueryRestClient queryRestClient, ClientDiagnostics clientDiagnostics) + internal TimeSeriesInsightsQuery(QueryRestClient queryRestClient, ClientDiagnostics clientDiagnostics) { Argument.AssertNotNull(queryRestClient, nameof(queryRestClient)); Argument.AssertNotNull(clientDiagnostics, nameof(clientDiagnostics)); diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TypesClient.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsTypes.cs similarity index 99% rename from sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TypesClient.cs rename to sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsTypes.cs index b52495591b15b..720528bdc517e 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TypesClient.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsTypes.cs @@ -14,19 +14,19 @@ namespace Azure.IoT.TimeSeriesInsights /// /// Types client that can be used to perform operations such as creating, listing, replacing and deleting Time Series types. /// - public class TypesClient + public class TimeSeriesInsightsTypes { private readonly TimeSeriesTypesRestClient _typesRestClient; private readonly ClientDiagnostics _clientDiagnostics; /// - /// Initializes a new instance of TypesClient. This constructor should only be used for mocking purposes. + /// Initializes a new instance of TimeSeriesInsightsTypes. This constructor should only be used for mocking purposes. /// - protected TypesClient() + protected TimeSeriesInsightsTypes() { } - internal TypesClient(TimeSeriesTypesRestClient typesRestClient, ClientDiagnostics clientDiagnostics) + internal TimeSeriesInsightsTypes(TimeSeriesTypesRestClient typesRestClient, ClientDiagnostics clientDiagnostics) { Argument.AssertNotNull(typesRestClient, nameof(typesRestClient)); Argument.AssertNotNull(clientDiagnostics, nameof(clientDiagnostics)); diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/autorest.md b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/autorest.md index 9b593021ccd7f..38bf289b84832 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/autorest.md +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/autorest.md @@ -27,7 +27,6 @@ directive: path.includes("Availability") || path.includes("EventSchema") || path.includes("InstanceHit") || - path.includes("InstanceHitHighlights") || path.includes("InstancesSearchStringSuggestion") || path.includes("InstancesSortParameter") || path.includes("InstancesSuggestResponse") || @@ -43,7 +42,17 @@ directive: path.includes("HierarchiesSortBy") || path.includes("HierarchiesSortParameter") || path.includes("HierarchiesExpandParameter") || - path.includes("HierarchiesSortParameter")) + path.includes("HierarchiesSortParameter") || + path.includes("QueryRequest") || + path.includes("InstancesBatchRequest") || + path.includes("GetHierarchiesPage") || + path.includes("GetInstancesPage") || + path.includes("GetTypesPage") || + path.includes("HierarchiesBatchRequest") || + path.includes("HierarchiesRequestBatchGetDelete") || + path.includes("ModelSettingsResponse") || + path.includes("TypesBatchRequest") || + path.includes("TypesRequestBatchGetOrDelete")) { $[path]["x-accessibility"] = "internal" } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/HierarchiesTests.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/HierarchiesTests.cs index d09defbb90c33..e448d5ac8c29b 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/HierarchiesTests.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/HierarchiesTests.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.Threading.Tasks; using Azure.Core.TestFramework; -using Azure.IoT.TimeSeriesInsights.Models; using FluentAssertions; using NUnit.Framework; diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/TimeSeriesInsightsQueryAggregateSeriesTests.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/TimeSeriesInsightsQueryAggregateSeriesTests.cs index a5d008a8a6b88..fbed556c3754f 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/TimeSeriesInsightsQueryAggregateSeriesTests.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/TimeSeriesInsightsQueryAggregateSeriesTests.cs @@ -8,7 +8,6 @@ using System.Text.Json; using System.Threading.Tasks; using Azure.Core.TestFramework; -using Azure.IoT.TimeSeriesInsights.Models; using FluentAssertions; using Microsoft.Azure.Devices.Client; using NUnit.Framework;