forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DataFactory]Support New Features In ADF (Azure#26070)
- Loading branch information
1 parent
924eb68
commit 4be031b
Showing
8 changed files
with
364 additions
and
7 deletions.
There are no files selected for viewing
93 changes: 93 additions & 0 deletions
93
src/DataFactory/DataFactory.Management.Sdk/Generated/Models/IcebergDataset.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// 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. | ||
|
||
namespace Microsoft.Azure.Management.DataFactory.Models | ||
{ | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Iceberg dataset. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonObject("Iceberg")] | ||
[Microsoft.Rest.Serialization.JsonTransformation] | ||
public partial class IcebergDataset : Dataset | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the IcebergDataset class. | ||
/// </summary> | ||
public IcebergDataset() | ||
{ | ||
this.LinkedServiceName = new LinkedServiceReference(); | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the IcebergDataset class. | ||
/// </summary> | ||
|
||
/// <param name="additionalProperties">The Azure Data Factory nested object which identifies data within different | ||
/// data stores, such as tables, files, folders, and documents. | ||
/// </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="location">The location of the iceberg storage. Setting a file name is not allowed for | ||
/// iceberg format. | ||
/// </param> | ||
public IcebergDataset(LinkedServiceReference linkedServiceName, System.Collections.Generic.IDictionary<string, object> additionalProperties = default(System.Collections.Generic.IDictionary<string, object>), string description = default(string), object structure = default(object), object schema = default(object), System.Collections.Generic.IDictionary<string, ParameterSpecification> parameters = default(System.Collections.Generic.IDictionary<string, ParameterSpecification>), System.Collections.Generic.IList<object> annotations = default(System.Collections.Generic.IList<object>), DatasetFolder folder = default(DatasetFolder), DatasetLocation location = default(DatasetLocation)) | ||
|
||
: base(linkedServiceName, additionalProperties, description, structure, schema, parameters, annotations, folder) | ||
{ | ||
this.Location = location; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
|
||
/// <summary> | ||
/// Gets or sets the location of the iceberg storage. Setting a file name is | ||
/// not allowed for iceberg format. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.location")] | ||
public DatasetLocation Location {get; set; } | ||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="Microsoft.Rest.ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public override void Validate() | ||
{ | ||
base.Validate(); | ||
|
||
} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
src/DataFactory/DataFactory.Management.Sdk/Generated/Models/IcebergDatasetTypeProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// 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. | ||
|
||
namespace Microsoft.Azure.Management.DataFactory.Models | ||
{ | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Iceberg dataset properties. | ||
/// </summary> | ||
public partial class IcebergDatasetTypeProperties | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the IcebergDatasetTypeProperties class. | ||
/// </summary> | ||
public IcebergDatasetTypeProperties() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the IcebergDatasetTypeProperties class. | ||
/// </summary> | ||
|
||
/// <param name="location">The location of the iceberg storage. Setting a file name is not allowed for | ||
/// iceberg format. | ||
/// </param> | ||
public IcebergDatasetTypeProperties(DatasetLocation location) | ||
|
||
{ | ||
this.Location = location; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
|
||
/// <summary> | ||
/// Gets or sets the location of the iceberg storage. Setting a file name is | ||
/// not allowed for iceberg format. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty(PropertyName = "location")] | ||
public DatasetLocation Location {get; set; } | ||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="Microsoft.Rest.ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public virtual void Validate() | ||
{ | ||
if (this.Location == null) | ||
{ | ||
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Location"); | ||
} | ||
|
||
} | ||
} | ||
} |
83 changes: 83 additions & 0 deletions
83
src/DataFactory/DataFactory.Management.Sdk/Generated/Models/IcebergSink.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// 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. | ||
|
||
namespace Microsoft.Azure.Management.DataFactory.Models | ||
{ | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// A copy activity Iceberg sink. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonObject("IcebergSink")] | ||
public partial class IcebergSink : CopySink | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the IcebergSink class. | ||
/// </summary> | ||
public IcebergSink() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the IcebergSink class. | ||
/// </summary> | ||
|
||
/// <param name="writeBatchSize">Write batch size. Type: integer (or Expression with resultType integer), | ||
/// minimum: 0. | ||
/// </param> | ||
|
||
/// <param name="writeBatchTimeout">Write batch timeout. Type: string (or Expression with resultType string), | ||
/// pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). | ||
/// </param> | ||
|
||
/// <param name="sinkRetryCount">Sink retry count. Type: integer (or Expression with resultType integer). | ||
/// </param> | ||
|
||
/// <param name="sinkRetryWait">Sink retry wait. Type: string (or Expression with resultType string), | ||
/// pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). | ||
/// </param> | ||
|
||
/// <param name="maxConcurrentConnections">The maximum concurrent connection count for the sink data store. Type: | ||
/// integer (or Expression with resultType integer). | ||
/// </param> | ||
|
||
/// <param name="disableMetricsCollection">If true, disable data store metrics collection. Default is false. Type: | ||
/// boolean (or Expression with resultType boolean). | ||
/// </param> | ||
|
||
/// <param name="storeSettings">Iceberg store settings. | ||
/// </param> | ||
|
||
/// <param name="formatSettings">Iceberg format settings. | ||
/// </param> | ||
public IcebergSink(object writeBatchSize = default(object), object writeBatchTimeout = default(object), object sinkRetryCount = default(object), object sinkRetryWait = default(object), object maxConcurrentConnections = default(object), object disableMetricsCollection = default(object), StoreWriteSettings storeSettings = default(StoreWriteSettings), IcebergWriteSettings formatSettings = default(IcebergWriteSettings)) | ||
|
||
: base(writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, disableMetricsCollection) | ||
{ | ||
this.StoreSettings = storeSettings; | ||
this.FormatSettings = formatSettings; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
|
||
/// <summary> | ||
/// Gets or sets iceberg store settings. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty(PropertyName = "storeSettings")] | ||
public StoreWriteSettings StoreSettings {get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets iceberg format settings. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty(PropertyName = "formatSettings")] | ||
public IcebergWriteSettings FormatSettings {get; set; } | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
src/DataFactory/DataFactory.Management.Sdk/Generated/Models/IcebergWriteSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// 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. | ||
|
||
namespace Microsoft.Azure.Management.DataFactory.Models | ||
{ | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Iceberg write settings. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonObject("IcebergWriteSettings")] | ||
public partial class IcebergWriteSettings : FormatWriteSettings | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the IcebergWriteSettings class. | ||
/// </summary> | ||
public IcebergWriteSettings() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the IcebergWriteSettings class. | ||
/// </summary> | ||
|
||
/// <param name="additionalProperties">Format write settings. | ||
/// </param> | ||
public IcebergWriteSettings(System.Collections.Generic.IDictionary<string, object> additionalProperties = default(System.Collections.Generic.IDictionary<string, object>)) | ||
|
||
: base(additionalProperties) | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.