Skip to content

Commit

Permalink
SSIS changes (#6975)
Browse files Browse the repository at this point in the history
  • Loading branch information
tezhangmsvan authored and erich-wang committed Jul 19, 2019
1 parent 9f2816c commit 0e369a2
Show file tree
Hide file tree
Showing 16 changed files with 671 additions and 19 deletions.
6 changes: 3 additions & 3 deletions eng/mgmt/mgmtmetadata/datamigration_resource-manager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datamigration/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\dev\git\azure-sdk-for-net\sdk
2019-07-15 19:32:46 UTC
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datamigration/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\
2019-07-18 23:36:36 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 5861beaaac22d7dbeb99b022f716f0fd5571ab2c
Commit: e55caaf6d92a0efdb2c1dc268f052d6266bde439
AutoRest information
Requested version: latest
Bootstrapper version: autorest@2.0.4283
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ private void Initialize()
};
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<CommandProperties>("commandType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<CommandProperties>("commandType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<MigrateSsisTaskOutput>("resultType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<MigrateSsisTaskOutput>("resultType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<ConnectionInfo>("type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<ConnectionInfo>("type"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<MigrateOracleAzureDbPostgreSqlSyncTaskOutput>("resultType"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,25 @@ public ConnectToSourceSqlServerTaskInput()
/// 'MigrationFromSqlServerToAzureDB',
/// 'MigrationFromSqlServerToAzureMI',
/// 'MigrationFromMySQLToAzureDBForMySQL'</param>
/// <param name="collectDatabases">Flag for whether to collect
/// databases from source server.</param>
/// <param name="collectLogins">Flag for whether to collect logins from
/// source server.</param>
/// <param name="collectAgentJobs">Flag for whether to collect agent
/// jobs from source server.</param>
/// <param name="collectTdeCertificateInfo">Flag for whether to collect
/// TDE Certificate names from source server.</param>
public ConnectToSourceSqlServerTaskInput(SqlConnectionInfo sourceConnectionInfo, ServerLevelPermissionsGroup? checkPermissionsGroup = default(ServerLevelPermissionsGroup?), bool? collectLogins = default(bool?), bool? collectAgentJobs = default(bool?), bool? collectTdeCertificateInfo = default(bool?))
/// <param name="validateSsisCatalogOnly">Flag for whether to validate
/// SSIS catalog is reachable on the source server.</param>
public ConnectToSourceSqlServerTaskInput(SqlConnectionInfo sourceConnectionInfo, ServerLevelPermissionsGroup? checkPermissionsGroup = default(ServerLevelPermissionsGroup?), bool? collectDatabases = default(bool?), bool? collectLogins = default(bool?), bool? collectAgentJobs = default(bool?), bool? collectTdeCertificateInfo = default(bool?), bool? validateSsisCatalogOnly = default(bool?))
{
SourceConnectionInfo = sourceConnectionInfo;
CheckPermissionsGroup = checkPermissionsGroup;
CollectDatabases = collectDatabases;
CollectLogins = collectLogins;
CollectAgentJobs = collectAgentJobs;
CollectTdeCertificateInfo = collectTdeCertificateInfo;
ValidateSsisCatalogOnly = validateSsisCatalogOnly;
CustomInit();
}

Expand All @@ -76,6 +82,13 @@ public ConnectToSourceSqlServerTaskInput()
[JsonProperty(PropertyName = "checkPermissionsGroup")]
public ServerLevelPermissionsGroup? CheckPermissionsGroup { get; set; }

/// <summary>
/// Gets or sets flag for whether to collect databases from source
/// server.
/// </summary>
[JsonProperty(PropertyName = "collectDatabases")]
public bool? CollectDatabases { get; set; }

/// <summary>
/// Gets or sets flag for whether to collect logins from source server.
/// </summary>
Expand All @@ -96,6 +109,13 @@ public ConnectToSourceSqlServerTaskInput()
[JsonProperty(PropertyName = "collectTdeCertificateInfo")]
public bool? CollectTdeCertificateInfo { get; set; }

/// <summary>
/// Gets or sets flag for whether to validate SSIS catalog is reachable
/// on the source server.
/// </summary>
[JsonProperty(PropertyName = "validateSsisCatalogOnly")]
public bool? ValidateSsisCatalogOnly { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,18 @@ public ConnectToTargetSqlMITaskInput()
/// </summary>
/// <param name="targetConnectionInfo">Connection information for
/// target SQL Server</param>
public ConnectToTargetSqlMITaskInput(SqlConnectionInfo targetConnectionInfo)
/// <param name="collectLogins">Flag for whether to collect logins from
/// target SQL MI server.</param>
/// <param name="collectAgentJobs">Flag for whether to collect agent
/// jobs from target SQL MI server.</param>
/// <param name="validateSsisCatalogOnly">Flag for whether to validate
/// SSIS catalog is reachable on the target SQL MI server.</param>
public ConnectToTargetSqlMITaskInput(SqlConnectionInfo targetConnectionInfo, bool? collectLogins = default(bool?), bool? collectAgentJobs = default(bool?), bool? validateSsisCatalogOnly = default(bool?))
{
TargetConnectionInfo = targetConnectionInfo;
CollectLogins = collectLogins;
CollectAgentJobs = collectAgentJobs;
ValidateSsisCatalogOnly = validateSsisCatalogOnly;
CustomInit();
}

Expand All @@ -52,6 +61,27 @@ public ConnectToTargetSqlMITaskInput(SqlConnectionInfo targetConnectionInfo)
[JsonProperty(PropertyName = "targetConnectionInfo")]
public SqlConnectionInfo TargetConnectionInfo { get; set; }

/// <summary>
/// Gets or sets flag for whether to collect logins from target SQL MI
/// server.
/// </summary>
[JsonProperty(PropertyName = "collectLogins")]
public bool? CollectLogins { get; set; }

/// <summary>
/// Gets or sets flag for whether to collect agent jobs from target SQL
/// MI server.
/// </summary>
[JsonProperty(PropertyName = "collectAgentJobs")]
public bool? CollectAgentJobs { get; set; }

/// <summary>
/// Gets or sets flag for whether to validate SSIS catalog is reachable
/// on the target SQL MI server.
/// </summary>
[JsonProperty(PropertyName = "validateSsisCatalogOnly")]
public bool? ValidateSsisCatalogOnly { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
// <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.DataMigration.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Input for task that migrates SSIS packages from SQL Server to Azure SQL
/// Database Managed Instance.
/// </summary>
public partial class MigrateSsisTaskInput : SqlMigrationTaskInput
{
/// <summary>
/// Initializes a new instance of the MigrateSsisTaskInput class.
/// </summary>
public MigrateSsisTaskInput()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the MigrateSsisTaskInput class.
/// </summary>
/// <param name="sourceConnectionInfo">Information for connecting to
/// source</param>
/// <param name="targetConnectionInfo">Information for connecting to
/// target</param>
/// <param name="ssisMigrationInfo">SSIS package migration
/// information.</param>
public MigrateSsisTaskInput(SqlConnectionInfo sourceConnectionInfo, SqlConnectionInfo targetConnectionInfo, SsisMigrationInfo ssisMigrationInfo)
: base(sourceConnectionInfo, targetConnectionInfo)
{
SsisMigrationInfo = ssisMigrationInfo;
CustomInit();
}

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

/// <summary>
/// Gets or sets SSIS package migration information.
/// </summary>
[JsonProperty(PropertyName = "ssisMigrationInfo")]
public SsisMigrationInfo SsisMigrationInfo { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public override void Validate()
{
base.Validate();
if (SsisMigrationInfo == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "SsisMigrationInfo");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// <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.DataMigration.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Output for task that migrates SSIS packages from SQL Server to Azure
/// SQL Database Managed Instance.
/// </summary>
public partial class MigrateSsisTaskOutput
{
/// <summary>
/// Initializes a new instance of the MigrateSsisTaskOutput class.
/// </summary>
public MigrateSsisTaskOutput()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the MigrateSsisTaskOutput class.
/// </summary>
/// <param name="id">Result identifier</param>
public MigrateSsisTaskOutput(string id = default(string))
{
Id = id;
CustomInit();
}

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

/// <summary>
/// Gets result identifier
/// </summary>
[JsonProperty(PropertyName = "id")]
public string Id { get; private set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
// <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.DataMigration.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

[Newtonsoft.Json.JsonObject("MigrationLevelOutput")]
public partial class MigrateSsisTaskOutputMigrationLevel : MigrateSsisTaskOutput
{
/// <summary>
/// Initializes a new instance of the
/// MigrateSsisTaskOutputMigrationLevel class.
/// </summary>
public MigrateSsisTaskOutputMigrationLevel()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// MigrateSsisTaskOutputMigrationLevel class.
/// </summary>
/// <param name="id">Result identifier</param>
/// <param name="startedOn">Migration start time</param>
/// <param name="endedOn">Migration end time</param>
/// <param name="status">Current status of migration. Possible values
/// include: 'Default', 'Connecting', 'SourceAndTargetSelected',
/// 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped',
/// 'Completed', 'CompletedWithWarnings'</param>
/// <param name="message">Migration progress message</param>
/// <param name="sourceServerVersion">Source server version</param>
/// <param name="sourceServerBrandVersion">Source server brand
/// version</param>
/// <param name="targetServerVersion">Target server version</param>
/// <param name="targetServerBrandVersion">Target server brand
/// version</param>
/// <param name="exceptionsAndWarnings">Migration exceptions and
/// warnings.</param>
/// <param name="stage">Stage of SSIS migration. Possible values
/// include: 'None', 'Initialize', 'InProgress', 'Completed'</param>
public MigrateSsisTaskOutputMigrationLevel(string id = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string status = default(string), string message = default(string), string sourceServerVersion = default(string), string sourceServerBrandVersion = default(string), string targetServerVersion = default(string), string targetServerBrandVersion = default(string), IList<ReportableException> exceptionsAndWarnings = default(IList<ReportableException>), string stage = default(string))
: base(id)
{
StartedOn = startedOn;
EndedOn = endedOn;
Status = status;
Message = message;
SourceServerVersion = sourceServerVersion;
SourceServerBrandVersion = sourceServerBrandVersion;
TargetServerVersion = targetServerVersion;
TargetServerBrandVersion = targetServerBrandVersion;
ExceptionsAndWarnings = exceptionsAndWarnings;
Stage = stage;
CustomInit();
}

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

/// <summary>
/// Gets migration start time
/// </summary>
[JsonProperty(PropertyName = "startedOn")]
public System.DateTimeOffset? StartedOn { get; private set; }

/// <summary>
/// Gets migration end time
/// </summary>
[JsonProperty(PropertyName = "endedOn")]
public System.DateTimeOffset? EndedOn { get; private set; }

/// <summary>
/// Gets current status of migration. Possible values include:
/// 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins',
/// 'Configured', 'Running', 'Error', 'Stopped', 'Completed',
/// 'CompletedWithWarnings'
/// </summary>
[JsonProperty(PropertyName = "status")]
public string Status { get; private set; }

/// <summary>
/// Gets migration progress message
/// </summary>
[JsonProperty(PropertyName = "message")]
public string Message { get; private set; }

/// <summary>
/// Gets source server version
/// </summary>
[JsonProperty(PropertyName = "sourceServerVersion")]
public string SourceServerVersion { get; private set; }

/// <summary>
/// Gets source server brand version
/// </summary>
[JsonProperty(PropertyName = "sourceServerBrandVersion")]
public string SourceServerBrandVersion { get; private set; }

/// <summary>
/// Gets target server version
/// </summary>
[JsonProperty(PropertyName = "targetServerVersion")]
public string TargetServerVersion { get; private set; }

/// <summary>
/// Gets target server brand version
/// </summary>
[JsonProperty(PropertyName = "targetServerBrandVersion")]
public string TargetServerBrandVersion { get; private set; }

/// <summary>
/// Gets migration exceptions and warnings.
/// </summary>
[JsonProperty(PropertyName = "exceptionsAndWarnings")]
public IList<ReportableException> ExceptionsAndWarnings { get; private set; }

/// <summary>
/// Gets stage of SSIS migration. Possible values include: 'None',
/// 'Initialize', 'InProgress', 'Completed'
/// </summary>
[JsonProperty(PropertyName = "stage")]
public string Stage { get; private set; }

}
}
Loading

0 comments on commit 0e369a2

Please sign in to comment.