diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/QuickbaseLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/QuickbaseLinkedService.cs new file mode 100644 index 000000000000..6359c363f86f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/QuickbaseLinkedService.cs @@ -0,0 +1,103 @@ +// +// 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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Linked service for Quickbase. + /// + [Newtonsoft.Json.JsonObject("Quickbase")] + [Rest.Serialization.JsonTransformation] + public partial class QuickbaseLinkedService : LinkedService + { + /// + /// Initializes a new instance of the QuickbaseLinkedService class. + /// + public QuickbaseLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the QuickbaseLinkedService class. + /// + /// The url to connect Quickbase source. Type: string + /// (or Expression with resultType string). + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The user token for the Quickbase + /// source. + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public QuickbaseLinkedService(object url, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), SecretBase userToken = default(SecretBase), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + Url = url; + UserToken = userToken; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the url to connect Quickbase source. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.url")] + public object Url { get; set; } + + /// + /// Gets or sets the user token for the Quickbase source. + /// + [JsonProperty(PropertyName = "typeProperties.userToken")] + public SecretBase UserToken { get; set; } + + /// + /// Gets or sets the encrypted credential used for authentication. + /// Credentials are encrypted using the integration runtime credential + /// manager. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Url == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Url"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISPackageLocation.cs similarity index 100% rename from sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs rename to sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISPackageLocation.cs diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivity.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivity.cs new file mode 100644 index 000000000000..248ef5440521 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivity.cs @@ -0,0 +1,98 @@ +// +// 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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Script activity type. + /// + [Newtonsoft.Json.JsonObject("Script")] + [Rest.Serialization.JsonTransformation] + public partial class ScriptActivity : ExecutionActivity + { + /// + /// Initializes a new instance of the ScriptActivity class. + /// + public ScriptActivity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptActivity class. + /// + /// Activity name. + /// Unmatched properties from the + /// message are deserialized this collection + /// Activity description. + /// Activity depends on condition. + /// Activity user properties. + /// Linked service reference. + /// Activity policy. + /// Array of script blocks. Type: array. + /// Log settings of script activity. + public ScriptActivity(string name, IDictionary additionalProperties = default(IDictionary), string description = default(string), IList dependsOn = default(IList), IList userProperties = default(IList), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), IList scripts = default(IList), ScriptActivityTypePropertiesLogSettings logSettings = default(ScriptActivityTypePropertiesLogSettings)) + : base(name, additionalProperties, description, dependsOn, userProperties, linkedServiceName, policy) + { + Scripts = scripts; + LogSettings = logSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets array of script blocks. Type: array. + /// + [JsonProperty(PropertyName = "typeProperties.scripts")] + public IList Scripts { get; set; } + + /// + /// Gets or sets log settings of script activity. + /// + [JsonProperty(PropertyName = "typeProperties.logSettings")] + public ScriptActivityTypePropertiesLogSettings LogSettings { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Scripts != null) + { + foreach (var element in Scripts) + { + if (element != null) + { + element.Validate(); + } + } + } + if (LogSettings != null) + { + LogSettings.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityLogDestination.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityLogDestination.cs new file mode 100644 index 000000000000..25cd34c60cf0 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityLogDestination.cs @@ -0,0 +1,22 @@ +// +// 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 +{ + + /// + /// Defines values for ScriptActivityLogDestination. + /// + public static class ScriptActivityLogDestination + { + public const string ActivityOutput = "ActivityOutput"; + public const string ExternalStore = "ExternalStore"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityParameter.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityParameter.cs new file mode 100644 index 000000000000..90f77239c6f7 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityParameter.cs @@ -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 Newtonsoft.Json; + using System.Linq; + + /// + /// Parameters of a script block. + /// + public partial class ScriptActivityParameter + { + /// + /// Initializes a new instance of the ScriptActivityParameter class. + /// + public ScriptActivityParameter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptActivityParameter class. + /// + /// The name of the parameter. Type: string (or + /// Expression with resultType string). + /// The type of the parameter. Possible values + /// include: 'Boolean', 'DateTime', 'DateTimeOffset', 'Decimal', + /// 'Double', 'Guid', 'Int16', 'Int32', 'Int64', 'Single', 'String', + /// 'Timespan' + /// The value of the parameter. + /// The direction of the parameter. Possible + /// values include: 'Input', 'Output', 'InputOutput' + /// The size of the output direction + /// parameter. + public ScriptActivityParameter(object name = default(object), string type = default(string), object value = default(object), string direction = default(string), int? size = default(int?)) + { + Name = name; + Type = type; + Value = value; + Direction = direction; + Size = size; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the parameter. Type: string (or Expression + /// with resultType string). + /// + [JsonProperty(PropertyName = "name")] + public object Name { get; set; } + + /// + /// Gets or sets the type of the parameter. Possible values include: + /// 'Boolean', 'DateTime', 'DateTimeOffset', 'Decimal', 'Double', + /// 'Guid', 'Int16', 'Int32', 'Int64', 'Single', 'String', 'Timespan' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the value of the parameter. + /// + [JsonProperty(PropertyName = "value")] + public object Value { get; set; } + + /// + /// Gets or sets the direction of the parameter. Possible values + /// include: 'Input', 'Output', 'InputOutput' + /// + [JsonProperty(PropertyName = "direction")] + public string Direction { get; set; } + + /// + /// Gets or sets the size of the output direction parameter. + /// + [JsonProperty(PropertyName = "size")] + public int? Size { get; set; } + + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityParameterDirection.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityParameterDirection.cs new file mode 100644 index 000000000000..a1389ad2974a --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityParameterDirection.cs @@ -0,0 +1,23 @@ +// +// 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 +{ + + /// + /// Defines values for ScriptActivityParameterDirection. + /// + public static class ScriptActivityParameterDirection + { + public const string Input = "Input"; + public const string Output = "Output"; + public const string InputOutput = "InputOutput"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityParameterType.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityParameterType.cs new file mode 100644 index 000000000000..0832da239198 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityParameterType.cs @@ -0,0 +1,32 @@ +// +// 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 +{ + + /// + /// Defines values for ScriptActivityParameterType. + /// + public static class ScriptActivityParameterType + { + public const string Boolean = "Boolean"; + public const string DateTime = "DateTime"; + public const string DateTimeOffset = "DateTimeOffset"; + public const string Decimal = "Decimal"; + public const string Double = "Double"; + public const string Guid = "Guid"; + public const string Int16 = "Int16"; + public const string Int32 = "Int32"; + public const string Int64 = "Int64"; + public const string Single = "Single"; + public const string String = "String"; + public const string Timespan = "Timespan"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs new file mode 100644 index 000000000000..b94be41797b9 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs @@ -0,0 +1,92 @@ +// +// 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 Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Script block of scripts. + /// + public partial class ScriptActivityScriptBlock + { + /// + /// Initializes a new instance of the ScriptActivityScriptBlock class. + /// + public ScriptActivityScriptBlock() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptActivityScriptBlock class. + /// + /// The query text. Type: string (or Expression with + /// resultType string). + /// The type of the query. Type: string. Possible + /// values include: 'Query', 'NonQuery' + /// Array of script parameters. Type: + /// array. + public ScriptActivityScriptBlock(object text, string type, IList parameters = default(IList)) + { + Text = text; + Type = type; + Parameters = parameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the query text. Type: string (or Expression with + /// resultType string). + /// + [JsonProperty(PropertyName = "text")] + public object Text { get; set; } + + /// + /// Gets or sets the type of the query. Type: string. Possible values + /// include: 'Query', 'NonQuery' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets array of script parameters. Type: array. + /// + [JsonProperty(PropertyName = "parameters")] + public IList Parameters { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Text == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Text"); + } + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.cs new file mode 100644 index 000000000000..c37b3cd21ac5 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.cs @@ -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 Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Log settings of script activity. + /// + public partial class ScriptActivityTypePropertiesLogSettings + { + /// + /// Initializes a new instance of the + /// ScriptActivityTypePropertiesLogSettings class. + /// + public ScriptActivityTypePropertiesLogSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ScriptActivityTypePropertiesLogSettings class. + /// + /// The destination of logs. Type: string. + /// Possible values include: 'ActivityOutput', 'ExternalStore' + /// Log location settings customer + /// needs to provide when enabling log. + public ScriptActivityTypePropertiesLogSettings(string logDestination, LogLocationSettings logLocationSettings = default(LogLocationSettings)) + { + LogDestination = logDestination; + LogLocationSettings = logLocationSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the destination of logs. Type: string. Possible values + /// include: 'ActivityOutput', 'ExternalStore' + /// + [JsonProperty(PropertyName = "logDestination")] + public string LogDestination { get; set; } + + /// + /// Gets or sets log location settings customer needs to provide when + /// enabling log. + /// + [JsonProperty(PropertyName = "logLocationSettings")] + public LogLocationSettings LogLocationSettings { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (LogDestination == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LogDestination"); + } + if (LogLocationSettings != null) + { + LogLocationSettings.Validate(); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptType.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptType.cs new file mode 100644 index 000000000000..fb0d08c8b2ee --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ScriptType.cs @@ -0,0 +1,22 @@ +// +// 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 +{ + + /// + /// Defines values for ScriptType. + /// + public static class ScriptType + { + public const string Query = "Query"; + public const string NonQuery = "NonQuery"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SmartsheetLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SmartsheetLinkedService.cs new file mode 100644 index 000000000000..bbc61008bcbb --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SmartsheetLinkedService.cs @@ -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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Linked service for Smartsheet. + /// + [Newtonsoft.Json.JsonObject("Smartsheet")] + [Rest.Serialization.JsonTransformation] + public partial class SmartsheetLinkedService : LinkedService + { + /// + /// Initializes a new instance of the SmartsheetLinkedService class. + /// + public SmartsheetLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SmartsheetLinkedService class. + /// + /// The api token for the Smartsheet + /// source. + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public SmartsheetLinkedService(SecretBase apiToken, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + ApiToken = apiToken; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the api token for the Smartsheet source. + /// + [JsonProperty(PropertyName = "typeProperties.apiToken")] + public SecretBase ApiToken { get; set; } + + /// + /// Gets or sets the encrypted credential used for authentication. + /// Credentials are encrypted using the integration runtime credential + /// manager. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (ApiToken == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ApiToken"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeamDeskAuthenticationType.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeamDeskAuthenticationType.cs new file mode 100644 index 000000000000..fe1b0cb5872f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeamDeskAuthenticationType.cs @@ -0,0 +1,22 @@ +// +// 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 +{ + + /// + /// Defines values for TeamDeskAuthenticationType. + /// + public static class TeamDeskAuthenticationType + { + public const string Basic = "Basic"; + public const string Token = "Token"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeamDeskLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeamDeskLinkedService.cs new file mode 100644 index 000000000000..1c22f1d59e13 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TeamDeskLinkedService.cs @@ -0,0 +1,135 @@ +// +// 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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Linked service for TeamDesk. + /// + [Newtonsoft.Json.JsonObject("TeamDesk")] + [Rest.Serialization.JsonTransformation] + public partial class TeamDeskLinkedService : LinkedService + { + /// + /// Initializes a new instance of the TeamDeskLinkedService class. + /// + public TeamDeskLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TeamDeskLinkedService class. + /// + /// The authentication type to use. + /// Possible values include: 'Basic', 'Token' + /// The url to connect TeamDesk source. Type: string + /// (or Expression with resultType string). + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The username of the TeamDesk source. Type: + /// string (or Expression with resultType string). + /// The password of the TeamDesk source. + /// The api token for the TeamDesk + /// source. + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public TeamDeskLinkedService(string authenticationType, object url, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object userName = default(object), SecretBase password = default(SecretBase), SecretBase apiToken = default(SecretBase), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + AuthenticationType = authenticationType; + Url = url; + UserName = userName; + Password = password; + ApiToken = apiToken; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the authentication type to use. Possible values + /// include: 'Basic', 'Token' + /// + [JsonProperty(PropertyName = "typeProperties.authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets the url to connect TeamDesk source. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.url")] + public object Url { get; set; } + + /// + /// Gets or sets the username of the TeamDesk source. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.userName")] + public object UserName { get; set; } + + /// + /// Gets or sets the password of the TeamDesk source. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public SecretBase Password { get; set; } + + /// + /// Gets or sets the api token for the TeamDesk source. + /// + [JsonProperty(PropertyName = "typeProperties.apiToken")] + public SecretBase ApiToken { get; set; } + + /// + /// Gets or sets the encrypted credential used for authentication. + /// Credentials are encrypted using the integration runtime credential + /// manager. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (AuthenticationType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); + } + if (Url == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Url"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ZendeskAuthenticationType.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ZendeskAuthenticationType.cs new file mode 100644 index 000000000000..4f43799c39e5 --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ZendeskAuthenticationType.cs @@ -0,0 +1,22 @@ +// +// 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 +{ + + /// + /// Defines values for ZendeskAuthenticationType. + /// + public static class ZendeskAuthenticationType + { + public const string Basic = "Basic"; + public const string Token = "Token"; + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ZendeskLinkedService.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ZendeskLinkedService.cs new file mode 100644 index 000000000000..c55e6cb6488f --- /dev/null +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ZendeskLinkedService.cs @@ -0,0 +1,135 @@ +// +// 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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Linked service for Zendesk. + /// + [Newtonsoft.Json.JsonObject("Zendesk")] + [Rest.Serialization.JsonTransformation] + public partial class ZendeskLinkedService : LinkedService + { + /// + /// Initializes a new instance of the ZendeskLinkedService class. + /// + public ZendeskLinkedService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ZendeskLinkedService class. + /// + /// The authentication type to use. + /// Possible values include: 'Basic', 'Token' + /// The url to connect Zendesk source. Type: string + /// (or Expression with resultType string). + /// Unmatched properties from the + /// message are deserialized this collection + /// The integration runtime reference. + /// Linked service description. + /// Parameters for linked service. + /// List of tags that can be used for + /// describing the linked service. + /// The username of the Zendesk source. Type: + /// string (or Expression with resultType string). + /// The password of the Zendesk source. + /// The api token for the Zendesk + /// source. + /// The encrypted credential used for + /// authentication. Credentials are encrypted using the integration + /// runtime credential manager. Type: string (or Expression with + /// resultType string). + public ZendeskLinkedService(string authenticationType, object url, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), IDictionary parameters = default(IDictionary), IList annotations = default(IList), object userName = default(object), SecretBase password = default(SecretBase), SecretBase apiToken = default(SecretBase), object encryptedCredential = default(object)) + : base(additionalProperties, connectVia, description, parameters, annotations) + { + AuthenticationType = authenticationType; + Url = url; + UserName = userName; + Password = password; + ApiToken = apiToken; + EncryptedCredential = encryptedCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the authentication type to use. Possible values + /// include: 'Basic', 'Token' + /// + [JsonProperty(PropertyName = "typeProperties.authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets the url to connect Zendesk source. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.url")] + public object Url { get; set; } + + /// + /// Gets or sets the username of the Zendesk source. Type: string (or + /// Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.userName")] + public object UserName { get; set; } + + /// + /// Gets or sets the password of the Zendesk source. + /// + [JsonProperty(PropertyName = "typeProperties.password")] + public SecretBase Password { get; set; } + + /// + /// Gets or sets the api token for the Zendesk source. + /// + [JsonProperty(PropertyName = "typeProperties.apiToken")] + public SecretBase ApiToken { get; set; } + + /// + /// Gets or sets the encrypted credential used for authentication. + /// Credentials are encrypted using the integration runtime credential + /// manager. Type: string (or Expression with resultType string). + /// + [JsonProperty(PropertyName = "typeProperties.encryptedCredential")] + public object EncryptedCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (AuthenticationType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); + } + if (Url == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Url"); + } + } + } +} diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs index fcaa64287cb3..ac665f5acd05 100644 --- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs +++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs @@ -43,16 +43,5 @@ public static IEnumerable> ApiInfo_DataFactoryMana }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=D:\\Projects\\azure-sdk-for-net-1\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "2a8a9a79b23c72c6092d5b1212acf6d69b1b3850"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -