Skip to content

Commit

Permalink
Generated from f4423b897956eb5728b3476e05e26fd06e3faed6 (#248)
Browse files Browse the repository at this point in the history
SQL
  • Loading branch information
openapi-sdkautomation[bot] authored and azuresdkci committed Sep 27, 2019
1 parent 5511307 commit d5d6059
Show file tree
Hide file tree
Showing 18 changed files with 497 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public ADLSGen1FileDataSet()
/// <param name="id">The resource id of the azure resource</param>
/// <param name="name">Name of the azure resource</param>
/// <param name="type">Type of the azure resource</param>
/// <param name="dataSetId">Unique DataSet id.</param>
/// <param name="dataSetId">Unique id for identifying a data set
/// resource</param>
public ADLSGen1FileDataSet(string accountName, string fileName, string folderPath, string resourceGroup, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string))
: base(id, name, type)
{
Expand All @@ -68,7 +69,7 @@ public ADLSGen1FileDataSet()
public string AccountName { get; set; }

/// <summary>
/// Gets unique DataSet id.
/// Gets unique id for identifying a data set resource
/// </summary>
[JsonProperty(PropertyName = "properties.dataSetId")]
public string DataSetId { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public ADLSGen1FolderDataSet()
/// <param name="id">The resource id of the azure resource</param>
/// <param name="name">Name of the azure resource</param>
/// <param name="type">Type of the azure resource</param>
/// <param name="dataSetId">Unique DataSet id.</param>
/// <param name="dataSetId">Unique id for identifying a data set
/// resource</param>
public ADLSGen1FolderDataSet(string accountName, string folderPath, string resourceGroup, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string))
: base(id, name, type)
{
Expand All @@ -66,7 +67,7 @@ public ADLSGen1FolderDataSet()
public string AccountName { get; set; }

/// <summary>
/// Gets unique DataSet id.
/// Gets unique id for identifying a data set resource
/// </summary>
[JsonProperty(PropertyName = "properties.dataSetId")]
public string DataSetId { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public ADLSGen2FileDataSet()
/// <param name="id">The resource id of the azure resource</param>
/// <param name="name">Name of the azure resource</param>
/// <param name="type">Type of the azure resource</param>
/// <param name="dataSetId">Unique DataSet id.</param>
/// <param name="dataSetId">Unique id for identifying a data set
/// resource</param>
public ADLSGen2FileDataSet(string filePath, string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string))
: base(id, name, type)
{
Expand All @@ -64,7 +65,7 @@ public ADLSGen2FileDataSet()
partial void CustomInit();

/// <summary>
/// Gets unique DataSet id.
/// Gets unique id for identifying a data set resource
/// </summary>
[JsonProperty(PropertyName = "properties.dataSetId")]
public string DataSetId { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ public ADLSGen2FileDataSetMapping()
/// <param name="dataSetId">Gets the id of source dataset.</param>
/// <param name="dataSetMappingStatus">Gets the status of the dataset
/// mapping. Possible values include: 'Ok', 'Broken'</param>
public ADLSGen2FileDataSetMapping(string filePath, string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string), string dataSetMappingStatus = default(string))
/// <param name="outputType">Type of output file. Possible values
/// include: 'Csv', 'Parquet'</param>
public ADLSGen2FileDataSetMapping(string filePath, string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string), string dataSetMappingStatus = default(string), string outputType = default(string))
: base(id, name, type)
{
DataSetId = dataSetId;
DataSetMappingStatus = dataSetMappingStatus;
FilePath = filePath;
FileSystem = fileSystem;
OutputType = outputType;
ResourceGroup = resourceGroup;
StorageAccountName = storageAccountName;
SubscriptionId = subscriptionId;
Expand Down Expand Up @@ -91,6 +94,13 @@ public ADLSGen2FileDataSetMapping()
[JsonProperty(PropertyName = "properties.fileSystem")]
public string FileSystem { get; set; }

/// <summary>
/// Gets or sets type of output file. Possible values include: 'Csv',
/// 'Parquet'
/// </summary>
[JsonProperty(PropertyName = "properties.outputType")]
public string OutputType { get; set; }

/// <summary>
/// Gets or sets resource group of storage account.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public ADLSGen2FileSystemDataSet()
/// <param name="id">The resource id of the azure resource</param>
/// <param name="name">Name of the azure resource</param>
/// <param name="type">Type of the azure resource</param>
/// <param name="dataSetId">Unique DataSet id.</param>
/// <param name="dataSetId">Unique id for identifying a data set
/// resource</param>
public ADLSGen2FileSystemDataSet(string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string))
: base(id, name, type)
{
Expand All @@ -61,7 +62,7 @@ public ADLSGen2FileSystemDataSet()
partial void CustomInit();

/// <summary>
/// Gets unique DataSet id.
/// Gets unique id for identifying a data set resource
/// </summary>
[JsonProperty(PropertyName = "properties.dataSetId")]
public string DataSetId { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public ADLSGen2FolderDataSet()
/// <param name="id">The resource id of the azure resource</param>
/// <param name="name">Name of the azure resource</param>
/// <param name="type">Type of the azure resource</param>
/// <param name="dataSetId">Unique DataSet id.</param>
/// <param name="dataSetId">Unique id for identifying a data set
/// resource</param>
public ADLSGen2FolderDataSet(string fileSystem, string folderPath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string))
: base(id, name, type)
{
Expand All @@ -65,7 +66,7 @@ public ADLSGen2FolderDataSet()
partial void CustomInit();

/// <summary>
/// Gets unique DataSet id.
/// Gets unique id for identifying a data set resource
/// </summary>
[JsonProperty(PropertyName = "properties.dataSetId")]
public string DataSetId { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public BlobContainerDataSet()
/// <param name="id">The resource id of the azure resource</param>
/// <param name="name">Name of the azure resource</param>
/// <param name="type">Type of the azure resource</param>
/// <param name="dataSetId">Unique DataSet id.</param>
/// <param name="dataSetId">Unique id for identifying a data set
/// resource</param>
public BlobContainerDataSet(string containerName, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string))
: base(id, name, type)
{
Expand All @@ -67,7 +68,7 @@ public BlobContainerDataSet()
public string ContainerName { get; set; }

/// <summary>
/// Gets unique DataSet id.
/// Gets unique id for identifying a data set resource
/// </summary>
[JsonProperty(PropertyName = "properties.dataSetId")]
public string DataSetId { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public BlobDataSet()
/// <param name="id">The resource id of the azure resource</param>
/// <param name="name">Name of the azure resource</param>
/// <param name="type">Type of the azure resource</param>
/// <param name="dataSetId">Unique DataSet id.</param>
/// <param name="dataSetId">Unique id for identifying a data set
/// resource</param>
public BlobDataSet(string containerName, string filePath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string))
: base(id, name, type)
{
Expand All @@ -70,7 +71,7 @@ public BlobDataSet()
public string ContainerName { get; set; }

/// <summary>
/// Gets unique DataSet id.
/// Gets unique id for identifying a data set resource
/// </summary>
[JsonProperty(PropertyName = "properties.dataSetId")]
public string DataSetId { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ public BlobDataSetMapping()
/// <param name="dataSetId">Gets the id of source dataset.</param>
/// <param name="dataSetMappingStatus">Gets the status of the dataset
/// mapping. Possible values include: 'Ok', 'Broken'</param>
public BlobDataSetMapping(string containerName, string filePath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string), string dataSetMappingStatus = default(string))
/// <param name="outputType">File output type. Possible values include:
/// 'Csv', 'Parquet'</param>
public BlobDataSetMapping(string containerName, string filePath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string), string dataSetMappingStatus = default(string), string outputType = default(string))
: base(id, name, type)
{
ContainerName = containerName;
DataSetId = dataSetId;
DataSetMappingStatus = dataSetMappingStatus;
FilePath = filePath;
OutputType = outputType;
ResourceGroup = resourceGroup;
StorageAccountName = storageAccountName;
SubscriptionId = subscriptionId;
Expand Down Expand Up @@ -91,6 +94,13 @@ public BlobDataSetMapping()
[JsonProperty(PropertyName = "properties.filePath")]
public string FilePath { get; set; }

/// <summary>
/// Gets or sets file output type. Possible values include: 'Csv',
/// 'Parquet'
/// </summary>
[JsonProperty(PropertyName = "properties.outputType")]
public string OutputType { get; set; }

/// <summary>
/// Gets or sets resource group of storage account.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public BlobFolderDataSet()
/// <param name="id">The resource id of the azure resource</param>
/// <param name="name">Name of the azure resource</param>
/// <param name="type">Type of the azure resource</param>
/// <param name="dataSetId">Unique DataSet id.</param>
/// <param name="dataSetId">Unique id for identifying a data set
/// resource</param>
public BlobFolderDataSet(string containerName, string prefix, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string))
: base(id, name, type)
{
Expand All @@ -70,7 +71,7 @@ public BlobFolderDataSet()
public string ContainerName { get; set; }

/// <summary>
/// Gets unique DataSet id.
/// Gets unique id for identifying a data set resource
/// </summary>
[JsonProperty(PropertyName = "properties.dataSetId")]
public string DataSetId { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public ConsumerSourceDataSet()
/// <param name="dataSetName">DataSet name</param>
/// <param name="dataSetType">Type of dataSet. Possible values include:
/// 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem',
/// 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder',
/// 'AdlsGen1File'</param>
/// 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File',
/// 'SqlDBTable', 'SqlDWTable'</param>
public ConsumerSourceDataSet(string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string), string dataSetName = default(string), string dataSetType = default(string))
: base(id, name, type)
{
Expand Down Expand Up @@ -70,7 +70,8 @@ public ConsumerSourceDataSet()
/// <summary>
/// Gets type of dataSet. Possible values include: 'Blob', 'Container',
/// 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder',
/// 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File'
/// 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'SqlDBTable',
/// 'SqlDWTable'
/// </summary>
[JsonProperty(PropertyName = "properties.dataSetType")]
public string DataSetType { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ public static class DataSetType
public const string AdlsGen2File = "AdlsGen2File";
public const string AdlsGen1Folder = "AdlsGen1Folder";
public const string AdlsGen1File = "AdlsGen1File";
public const string SqlDBTable = "SqlDBTable";
public const string SqlDWTable = "SqlDWTable";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.DataShare.Models
{

/// <summary>
/// Defines values for OutputType.
/// </summary>
public static class OutputType
{
public const string Csv = "Csv";
public const string Parquet = "Parquet";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.DataShare.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// A SQL DB table dataset.
/// </summary>
[Newtonsoft.Json.JsonObject("SqlDBTable")]
[Rest.Serialization.JsonTransformation]
public partial class SqlDBTableDataSet : DataSet
{
/// <summary>
/// Initializes a new instance of the SqlDBTableDataSet class.
/// </summary>
public SqlDBTableDataSet()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the SqlDBTableDataSet class.
/// </summary>
/// <param name="id">The resource id of the azure resource</param>
/// <param name="name">Name of the azure resource</param>
/// <param name="type">Type of the azure resource</param>
/// <param name="databaseName">Database name of the source data
/// set</param>
/// <param name="dataSetId">Unique id for identifying a data set
/// resource</param>
/// <param name="sqlServerResourceId">Resource id of SQL server</param>
/// <param name="tableName">SQL DB table name.</param>
public SqlDBTableDataSet(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string dataSetId = default(string), string sqlServerResourceId = default(string), string tableName = default(string))
: base(id, name, type)
{
DatabaseName = databaseName;
DataSetId = dataSetId;
SqlServerResourceId = sqlServerResourceId;
TableName = tableName;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets database name of the source data set
/// </summary>
[JsonProperty(PropertyName = "properties.databaseName")]
public string DatabaseName { get; set; }

/// <summary>
/// Gets unique id for identifying a data set resource
/// </summary>
[JsonProperty(PropertyName = "properties.dataSetId")]
public string DataSetId { get; private set; }

/// <summary>
/// Gets or sets resource id of SQL server
/// </summary>
[JsonProperty(PropertyName = "properties.sqlServerResourceId")]
public string SqlServerResourceId { get; set; }

/// <summary>
/// Gets or sets SQL DB table name.
/// </summary>
[JsonProperty(PropertyName = "properties.tableName")]
public string TableName { get; set; }

}
}
Loading

0 comments on commit d5d6059

Please sign in to comment.