-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DelimitedTextDataset.cs
92 lines (85 loc) · 8.67 KB
/
DelimitedTextDataset.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.Core.Expressions.DataFactory;
namespace Azure.ResourceManager.DataFactory.Models
{
/// <summary> Delimited text dataset. </summary>
public partial class DelimitedTextDataset : DataFactoryDatasetProperties
{
/// <summary> Initializes a new instance of <see cref="DelimitedTextDataset"/>. </summary>
/// <param name="linkedServiceName"> Linked service reference. </param>
/// <exception cref="ArgumentNullException"> <paramref name="linkedServiceName"/> is null. </exception>
public DelimitedTextDataset(DataFactoryLinkedServiceReference linkedServiceName) : base(linkedServiceName)
{
Argument.AssertNotNull(linkedServiceName, nameof(linkedServiceName));
DatasetType = "DelimitedText";
}
/// <summary> Initializes a new instance of <see cref="DelimitedTextDataset"/>. </summary>
/// <param name="datasetType"> Type of dataset. </param>
/// <param name="description"> Dataset description. </param>
/// <param name="structure"> Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. </param>
/// <param name="schema"> Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. </param>
/// <param name="linkedServiceName"> Linked service reference. </param>
/// <param name="parameters"> Parameters for dataset. </param>
/// <param name="annotations"> List of tags that can be used for describing the Dataset. </param>
/// <param name="folder"> The folder that this Dataset is in. If not specified, Dataset will appear at the root level. </param>
/// <param name="additionalProperties"> Additional Properties. </param>
/// <param name="dataLocation">
/// The location of the delimited text storage.
/// Please note <see cref="DatasetLocation"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="AmazonS3CompatibleLocation"/>, <see cref="AmazonS3Location"/>, <see cref="AzureBlobFSLocation"/>, <see cref="AzureBlobStorageLocation"/>, <see cref="AzureDataLakeStoreLocation"/>, <see cref="AzureFileStorageLocation"/>, <see cref="FileServerLocation"/>, <see cref="FtpServerLocation"/>, <see cref="GoogleCloudStorageLocation"/>, <see cref="HdfsLocation"/>, <see cref="HttpServerLocation"/>, <see cref="LakeHouseLocation"/>, <see cref="OracleCloudStorageLocation"/> and <see cref="SftpLocation"/>.
/// </param>
/// <param name="columnDelimiter"> The column delimiter. Type: string (or Expression with resultType string). </param>
/// <param name="rowDelimiter"> The row delimiter. Type: string (or Expression with resultType string). </param>
/// <param name="encodingName"> The code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string). </param>
/// <param name="compressionCodec"> The data compressionCodec. Type: string (or Expression with resultType string). </param>
/// <param name="compressionLevel"> The data compression method used for DelimitedText. </param>
/// <param name="quoteChar"> The quote character. Type: string (or Expression with resultType string). </param>
/// <param name="escapeChar"> The escape character. Type: string (or Expression with resultType string). </param>
/// <param name="firstRowAsHeader"> When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean). </param>
/// <param name="nullValue"> The null value string. Type: string (or Expression with resultType string). </param>
internal DelimitedTextDataset(string datasetType, string description, DataFactoryElement<IList<DatasetDataElement>> structure, DataFactoryElement<IList<DatasetSchemaDataElement>> schema, DataFactoryLinkedServiceReference linkedServiceName, IDictionary<string, EntityParameterSpecification> parameters, IList<BinaryData> annotations, DatasetFolder folder, IDictionary<string, BinaryData> additionalProperties, DatasetLocation dataLocation, DataFactoryElement<string> columnDelimiter, DataFactoryElement<string> rowDelimiter, DataFactoryElement<string> encodingName, DataFactoryElement<string> compressionCodec, DataFactoryElement<string> compressionLevel, DataFactoryElement<string> quoteChar, DataFactoryElement<string> escapeChar, DataFactoryElement<bool> firstRowAsHeader, DataFactoryElement<string> nullValue) : base(datasetType, description, structure, schema, linkedServiceName, parameters, annotations, folder, additionalProperties)
{
DataLocation = dataLocation;
ColumnDelimiter = columnDelimiter;
RowDelimiter = rowDelimiter;
EncodingName = encodingName;
CompressionCodec = compressionCodec;
CompressionLevel = compressionLevel;
QuoteChar = quoteChar;
EscapeChar = escapeChar;
FirstRowAsHeader = firstRowAsHeader;
NullValue = nullValue;
DatasetType = datasetType ?? "DelimitedText";
}
/// <summary>
/// The location of the delimited text storage.
/// Please note <see cref="DatasetLocation"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="AmazonS3CompatibleLocation"/>, <see cref="AmazonS3Location"/>, <see cref="AzureBlobFSLocation"/>, <see cref="AzureBlobStorageLocation"/>, <see cref="AzureDataLakeStoreLocation"/>, <see cref="AzureFileStorageLocation"/>, <see cref="FileServerLocation"/>, <see cref="FtpServerLocation"/>, <see cref="GoogleCloudStorageLocation"/>, <see cref="HdfsLocation"/>, <see cref="HttpServerLocation"/>, <see cref="LakeHouseLocation"/>, <see cref="OracleCloudStorageLocation"/> and <see cref="SftpLocation"/>.
/// </summary>
public DatasetLocation DataLocation { get; set; }
/// <summary> The column delimiter. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> ColumnDelimiter { get; set; }
/// <summary> The row delimiter. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> RowDelimiter { get; set; }
/// <summary> The code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> EncodingName { get; set; }
/// <summary> The data compressionCodec. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> CompressionCodec { get; set; }
/// <summary> The data compression method used for DelimitedText. </summary>
public DataFactoryElement<string> CompressionLevel { get; set; }
/// <summary> The quote character. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> QuoteChar { get; set; }
/// <summary> The escape character. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> EscapeChar { get; set; }
/// <summary> When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean). </summary>
public DataFactoryElement<bool> FirstRowAsHeader { get; set; }
/// <summary> The null value string. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> NullValue { get; set; }
}
}