Skip to content

Commit

Permalink
[Synapse][Artifacts] - Make some models public (#18515)
Browse files Browse the repository at this point in the history
* Make some models public
* Fix Export API issue

Co-authored-by: Dongwei Wang <[email protected]>
  • Loading branch information
idear1203 and Dongwei Wang authored Feb 9, 2021
1 parent e151c19 commit 1f88c0d
Show file tree
Hide file tree
Showing 58 changed files with 721 additions and 177 deletions.
2 changes: 1 addition & 1 deletion sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Release History

## 1.0.0-beta.2 (Unreleased)

- Expose some models

## 1.0.0-beta.1 (2020-11-12)
- Supports List/Get Synapse resources through data plane APIs
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
public partial class AvroFormat : DatasetStorageFormat
{
/// <summary> Initializes a new instance of AvroFormat. </summary>
public AvroFormat()
{
Type = "AvroFormat";
}
}
}
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 System;

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> All available types of copy behavior. </summary>
public readonly partial struct CopyBehaviorType : IEquatable<CopyBehaviorType>
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Collections.Generic;
using Azure.Core;

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> A copy activity translator. </summary>
public partial class CopyTranslator : IReadOnlyDictionary<string, object>
{
public CopyTranslator()
{
AdditionalProperties = new ChangeTrackingDictionary<string, object>();
Type = "CopyTranslator";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Request body structure for data flow preview data. </summary>
public partial class DataFlowDebugPreviewDataRequest
{
public DataFlowDebugPreviewDataRequest()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Response body structure of data flow query for data preview, statistics or expression preview. </summary>
public partial class DataFlowDebugQueryResponse
{
/// <summary> Initializes a new instance of DataFlowDebugQueryResponse. </summary>
public DataFlowDebugQueryResponse()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Response body structure of data flow result for data preview, statistics or expression preview. </summary>
public partial class DataFlowDebugResultResponse
{
/// <summary> Initializes a new instance of DataFlowDebugResultResponse. </summary>
public DataFlowDebugResultResponse()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Collections.Generic;
using Azure.Core;

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Request body structure for data flow statistics. </summary>
public partial class DataFlowDebugStatisticsRequest
{
/// <summary> Initializes a new instance of DataFlowDebugStatisticsRequest. </summary>
public DataFlowDebugStatisticsRequest()
{
Columns = new ChangeTrackingList<string>();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Columns that define the structure of the dataset. </summary>
public partial class DatasetDataElement
{
/// <summary> Initializes a new instance of DatasetDataElement. </summary>
public DatasetDataElement()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Collections;
using System.Collections.Generic;
using Azure.Core;

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Columns that define the physical type schema of the dataset. </summary>
public partial class DatasetSchemaDataElement : IReadOnlyDictionary<string, object>
{
/// <summary> Initializes a new instance of DatasetSchemaDataElement. </summary>
public DatasetSchemaDataElement()
{
AdditionalProperties = new ChangeTrackingDictionary<string, object>();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Collections;
using System.Collections.Generic;
using Azure.Core;

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The format definition of a storage. </summary>
public partial class DatasetStorageFormat : IReadOnlyDictionary<string, object>
{
/// <summary> Initializes a new instance of DatasetStorageFormat. </summary>
public DatasetStorageFormat()
{
AdditionalProperties = new ChangeTrackingDictionary<string, object>();
Type = "DatasetStorageFormat";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Request body structure for data flow expression preview. </summary>
public partial class EvaluateDataFlowExpressionRequest
{
/// <summary> Initializes a new instance of EvaluateDataFlowExpressionRequest. </summary>
public EvaluateDataFlowExpressionRequest()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The exposure control request. </summary>
public partial class ExposureControlRequest
{
/// <summary> Initializes a new instance of ExposureControlRequest. </summary>
public ExposureControlRequest()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The exposure control response. </summary>
public partial class ExposureControlResponse
{
/// <summary> Initializes a new instance of ExposureControlResponse. </summary>
public ExposureControlResponse()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The request payload of get SSIS object metadata. </summary>
public partial class GetSsisObjectMetadataRequest
{
/// <summary> Initializes a new instance of GetSsisObjectMetadataRequest. </summary>
public GetSsisObjectMetadataRequest()
{
}
}
}
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.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The data stored in JSON format. </summary>
public partial class JsonFormat : DatasetStorageFormat
{
/// <summary> Initializes a new instance of JsonFormat. </summary>
public JsonFormat()
{
Type = "JsonFormat";
}
}
}
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 System;

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> JSON format file pattern. A property of JsonFormat. </summary>
public readonly partial struct JsonFormatFilePattern : IEquatable<JsonFormatFilePattern>
{
}
}
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.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The data stored in Optimized Row Columnar (ORC) format. </summary>
public partial class OrcFormat : DatasetStorageFormat
{
/// <summary> Initializes a new instance of OrcFormat. </summary>
public OrcFormat()
{
Type = "OrcFormat";
}
}
}
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.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The data stored in Parquet format. </summary>
public partial class ParquetFormat : DatasetStorageFormat
{
/// <summary> Initializes a new instance of ParquetFormat. </summary>
public ParquetFormat()
{
Type = "ParquetFormat";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.Linq;

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> A list of rerun triggers. </summary>
public partial class RerunTriggerListResponse
{
/// <summary> Initializes a new instance of RerunTriggerListResponse. </summary>
/// <param name="value"> List of rerun triggers. </param>
/// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
public RerunTriggerListResponse(IEnumerable<RerunTriggerResource> value)
{
if (value == null)
{
throw new ArgumentNullException(nameof(value));
}

Value = value.ToList();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System;

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Rerun tumbling window trigger Parameters. </summary>
public partial class RerunTumblingWindowTriggerActionParameters
{
/// <summary> Initializes a new instance of RerunTumblingWindowTriggerActionParameters. </summary>
/// <param name="startTime"> The start time for the time period for which restatement is initiated. Only UTC time is currently supported. </param>
/// <param name="endTime"> The end time for the time period for which restatement is initiated. Only UTC time is currently supported. </param>
/// <param name="maxConcurrency"> The max number of parallel time windows (ready for execution) for which a rerun is triggered. </param>
public RerunTumblingWindowTriggerActionParameters(DateTimeOffset startTime, DateTimeOffset endTime, int maxConcurrency)
{
StartTime = startTime;
EndTime = endTime;
MaxConcurrency = maxConcurrency;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The status of the operation. </summary>
public partial class SsisObjectMetadataStatusResponse
{
/// <summary> Initializes a new instance of SsisObjectMetadataStatusResponse. </summary>
public SsisObjectMetadataStatusResponse()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Collections.Generic;
using Azure.Core;

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Request body structure for starting data flow debug session. </summary>
public partial class StartDataFlowDebugSessionRequest
{
/// <summary> Initializes a new instance of StartDataFlowDebugSessionRequest. </summary>
public StartDataFlowDebugSessionRequest()
{
Datasets = new ChangeTrackingList<DatasetResource>();
LinkedServices = new ChangeTrackingList<LinkedServiceResource>();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Response body structure for starting data flow debug session. </summary>
public partial class StartDataFlowDebugSessionResponse
{
/// <summary> Initializes a new instance of StartDataFlowDebugSessionResponse. </summary>
public StartDataFlowDebugSessionResponse()
{
}
}
}
Loading

0 comments on commit 1f88c0d

Please sign in to comment.