forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.NET SDK Resource Provider:'DataFactory'
REST Spec PR 'Azure/azure-rest-api-specs#5588' REST Spec PR Author 'HaoQian-MS' REST Spec PR Last commit
- Loading branch information
Showing
6 changed files
with
275 additions
and
8 deletions.
There are no files selected for viewing
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
93 changes: 93 additions & 0 deletions
93
src/SDKs/DataFactory/Management.DataFactory/Generated/Models/SSISAccessCredential.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 @@ | ||
// <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.DataFactory.Models | ||
{ | ||
using Microsoft.Rest; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// SSIS access credential. | ||
/// </summary> | ||
public partial class SSISAccessCredential | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the SSISAccessCredential class. | ||
/// </summary> | ||
public SSISAccessCredential() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the SSISAccessCredential class. | ||
/// </summary> | ||
/// <param name="domain">Domain for windows authentication.</param> | ||
/// <param name="userName">UseName for windows authentication.</param> | ||
/// <param name="password">Password for windows authentication.</param> | ||
public SSISAccessCredential(object domain, object userName, SecureString password) | ||
{ | ||
Domain = domain; | ||
UserName = userName; | ||
Password = password; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets domain for windows authentication. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "domain")] | ||
public object Domain { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets useName for windows authentication. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "userName")] | ||
public object UserName { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets password for windows authentication. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "password")] | ||
public SecureString Password { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public virtual void Validate() | ||
{ | ||
if (Domain == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "Domain"); | ||
} | ||
if (UserName == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "UserName"); | ||
} | ||
if (Password == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "Password"); | ||
} | ||
if (Password != null) | ||
{ | ||
Password.Validate(); | ||
} | ||
} | ||
} | ||
} |
91 changes: 91 additions & 0 deletions
91
src/SDKs/DataFactory/Management.DataFactory/Generated/Models/SSISLogLocation.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,91 @@ | ||
// <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.DataFactory.Models | ||
{ | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Serialization; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// SSIS package exection log location | ||
/// </summary> | ||
[Rest.Serialization.JsonTransformation] | ||
public partial class SSISLogLocation | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the SSISLogLocation class. | ||
/// </summary> | ||
public SSISLogLocation() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the SSISLogLocation class. | ||
/// </summary> | ||
/// <param name="logPath">The SSIS package execution log path. Type: | ||
/// string (or Expression with resultType string).</param> | ||
/// <param name="accessCredential">The package execution log access | ||
/// credential.</param> | ||
public SSISLogLocation(object logPath = default(object), SSISAccessCredential accessCredential = default(SSISAccessCredential)) | ||
{ | ||
LogPath = logPath; | ||
AccessCredential = accessCredential; | ||
CustomInit(); | ||
} | ||
/// <summary> | ||
/// Static constructor for SSISLogLocation class. | ||
/// </summary> | ||
static SSISLogLocation() | ||
{ | ||
Type = "File"; | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets the SSIS package execution log path. Type: string (or | ||
/// Expression with resultType string). | ||
/// </summary> | ||
[JsonProperty(PropertyName = "logPath")] | ||
public object LogPath { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the package execution log access credential. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "typeProperties.accessCredential")] | ||
public SSISAccessCredential AccessCredential { get; set; } | ||
|
||
/// <summary> | ||
/// The type of SSIS log location. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "type")] | ||
public static string Type { get; private set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public virtual void Validate() | ||
{ | ||
if (AccessCredential != null) | ||
{ | ||
AccessCredential.Validate(); | ||
} | ||
} | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
src/SDKs/DataFactory/Management.DataFactory/Generated/Models/SsisPackageLocationType.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,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.DataFactory.Models | ||
{ | ||
|
||
/// <summary> | ||
/// Defines values for SsisPackageLocationType. | ||
/// </summary> | ||
public static class SsisPackageLocationType | ||
{ | ||
public const string SSISDB = "SSISDB"; | ||
public const string File = "File"; | ||
} | ||
} |
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