Skip to content

Commit

Permalink
[TSI] Renaming and hiding types (#20773)
Browse files Browse the repository at this point in the history
  • Loading branch information
Basel Rustum authored May 3, 2021
1 parent 125a9f8 commit bfb5054
Show file tree
Hide file tree
Showing 87 changed files with 337 additions and 427 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// </summary>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Azure.IoT.TimeSeriesInsights
/// </summary>
[CodeGenModel("AggregateSeries")]
[CodeGenSuppress("AggregateSeries", typeof(IEnumerable<object>), 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// </summary>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Azure.IoT.TimeSeriesInsights
/// </summary>
[CodeGenModel("GetEvents")]
[CodeGenSuppress("GetEvents", typeof(IEnumerable<object>), 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// </summary>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Azure.IoT.TimeSeriesInsights
/// </summary>
[CodeGenModel("GetSeries")]
[CodeGenSuppress("GetSeries", typeof(IEnumerable<object>), 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Azure.IoT.TimeSeriesInsights
/// from Time Series Insights into a HierarchiesBatchResponse object.
/// </summary>
[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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
}
}
Original file line number Diff line number Diff line change
@@ -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
{
}
}
Original file line number Diff line number Diff line change
@@ -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
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Azure.IoT.TimeSeriesInsights
/// from Time Series Insights into a InstancesBatchResponse object.
/// </summary>
[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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// </summary>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights
/// Exactly one of &quot;timeSeriesIds&quot; or &quot;names&quot; must be set.
/// </summary>
[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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.IoT.TimeSeriesInsights
{
/// <summary>
/// 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.
/// </summary>
[CodeGenModel("InterpolationBoundary")]
public partial class InterpolationBoundary
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.IoT.TimeSeriesInsights
{
///<summary>
///The type of interpolation technique : &quot;Linear&quot; or &quot;Step&quot;.
///</summary>
[CodeGenModel("InterpolationKind")]
public readonly partial struct InterpolationKind
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.IoT.TimeSeriesInsights
{
///<summary>
///Definition of how time series hierarchy tree levels are created.
///</summary>
[CodeGenModel("TimeSeriesHierarchySource")]
public partial class TimeSeriesHierarchySource
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.IoT.TimeSeriesInsights
{
/// <summary>
/// The type of the property. Currently, only &quot;String&quot; is supported.
/// </summary>
[CodeGenModel("TimeSeriesIdPropertyTypes")]
public readonly partial struct TimeSeriesIdPropertyTypes
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Azure.IoT.TimeSeriesInsights
/// from Time Series Insights into a TypesBatchResponse object.
/// </summary>
[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
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bfb5054

Please sign in to comment.