Skip to content

Commit

Permalink
Updating datamigration SDK to include Oracle to PostgreSQL scenario (#…
Browse files Browse the repository at this point in the history
…6935)

* Updating SDK to include Oracle to PostgreSQL scenario

* Update AssemblyInfo.cs

Updating assembly version
  • Loading branch information
vchske authored and erich-wang committed Jul 18, 2019
1 parent 8892fdf commit 13b6bf2
Show file tree
Hide file tree
Showing 46 changed files with 5,099 additions and 7 deletions.
14 changes: 14 additions & 0 deletions eng/mgmt/mgmtmetadata/datamigration_resource-manager.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Installing AutoRest version: latest
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
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 5861beaaac22d7dbeb99b022f716f0fd5571ab2c
AutoRest information
Requested version: latest
Bootstrapper version: [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ public partial class DataMigrationServiceClient : ServiceClient<DataMigrationSer
/// </summary>
public virtual ITasksOperations Tasks { get; private set; }

/// <summary>
/// Gets the IServiceTasksOperations.
/// </summary>
public virtual IServiceTasksOperations ServiceTasks { get; private set; }

/// <summary>
/// Gets the IProjectsOperations.
/// </summary>
Expand Down Expand Up @@ -353,6 +358,7 @@ private void Initialize()
ResourceSkus = new ResourceSkusOperations(this);
Services = new ServicesOperations(this);
Tasks = new TasksOperations(this);
ServiceTasks = new ServiceTasksOperations(this);
Projects = new ProjectsOperations(this);
Usages = new UsagesOperations(this);
Operations = new Operations(this);
Expand Down Expand Up @@ -392,6 +398,8 @@ private void Initialize()
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<CommandProperties>("commandType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<ConnectionInfo>("type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<ConnectionInfo>("type"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<MigrateOracleAzureDbPostgreSqlSyncTaskOutput>("resultType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<MigrateOracleAzureDbPostgreSqlSyncTaskOutput>("resultType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput>("resultType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput>("resultType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<MigrateMySqlAzureDbForMySqlSyncTaskOutput>("resultType"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public partial interface IDataMigrationServiceClient : System.IDisposable
/// </summary>
ITasksOperations Tasks { get; }

/// <summary>
/// Gets the IServiceTasksOperations.
/// </summary>
IServiceTasksOperations ServiceTasks { get; }

/// <summary>
/// Gets the IProjectsOperations.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
// <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
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// ServiceTasksOperations operations.
/// </summary>
public partial interface IServiceTasksOperations
{
/// <summary>
/// Get service level tasks for a service
/// </summary>
/// <remarks>
/// The services resource is the top-level resource that represents the
/// Database Migration Service. This method returns a list of service
/// level tasks owned by a service resource. Some tasks may have a
/// status of Unknown, which indicates that an error occurred while
/// querying the status of that task.
/// </remarks>
/// <param name='groupName'>
/// Name of the resource group
/// </param>
/// <param name='serviceName'>
/// Name of the service
/// </param>
/// <param name='taskType'>
/// Filter tasks by task type
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ApiErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ProjectTask>>> ListWithHttpMessagesAsync(string groupName, string serviceName, string taskType = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Create or update service task
/// </summary>
/// <remarks>
/// The service tasks resource is a nested, proxy-only resource
/// representing work performed by a DMS instance. The PUT method
/// creates a new service task or updates an existing one, although
/// since service tasks have no mutable custom properties, there is
/// little reason to update an existing one.
/// </remarks>
/// <param name='parameters'>
/// Information about the task
/// </param>
/// <param name='groupName'>
/// Name of the resource group
/// </param>
/// <param name='serviceName'>
/// Name of the service
/// </param>
/// <param name='taskName'>
/// Name of the Task
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ApiErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ProjectTask>> CreateOrUpdateWithHttpMessagesAsync(ProjectTask parameters, string groupName, string serviceName, string taskName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get service task information
/// </summary>
/// <remarks>
/// The service tasks resource is a nested, proxy-only resource
/// representing work performed by a DMS instance. The GET method
/// retrieves information about a service task.
/// </remarks>
/// <param name='groupName'>
/// Name of the resource group
/// </param>
/// <param name='serviceName'>
/// Name of the service
/// </param>
/// <param name='taskName'>
/// Name of the Task
/// </param>
/// <param name='expand'>
/// Expand the response
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ApiErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ProjectTask>> GetWithHttpMessagesAsync(string groupName, string serviceName, string taskName, string expand = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete service task
/// </summary>
/// <remarks>
/// The service tasks resource is a nested, proxy-only resource
/// representing work performed by a DMS instance. The DELETE method
/// deletes a service task, canceling it first if it's running.
/// </remarks>
/// <param name='groupName'>
/// Name of the resource group
/// </param>
/// <param name='serviceName'>
/// Name of the service
/// </param>
/// <param name='taskName'>
/// Name of the Task
/// </param>
/// <param name='deleteRunningTasks'>
/// Delete the resource even if it contains running tasks
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ApiErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string groupName, string serviceName, string taskName, bool? deleteRunningTasks = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Create or update service task
/// </summary>
/// <remarks>
/// The service tasks resource is a nested, proxy-only resource
/// representing work performed by a DMS instance. The PATCH method
/// updates an existing service task, but since service tasks have no
/// mutable custom properties, there is little reason to do so.
/// </remarks>
/// <param name='parameters'>
/// Information about the task
/// </param>
/// <param name='groupName'>
/// Name of the resource group
/// </param>
/// <param name='serviceName'>
/// Name of the service
/// </param>
/// <param name='taskName'>
/// Name of the Task
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ApiErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ProjectTask>> UpdateWithHttpMessagesAsync(ProjectTask parameters, string groupName, string serviceName, string taskName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Cancel a service task
/// </summary>
/// <remarks>
/// The service tasks resource is a nested, proxy-only resource
/// representing work performed by a DMS instance. This method cancels
/// a service task if it's currently queued or running.
/// </remarks>
/// <param name='groupName'>
/// Name of the resource group
/// </param>
/// <param name='serviceName'>
/// Name of the service
/// </param>
/// <param name='taskName'>
/// Name of the Task
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ApiErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ProjectTask>> CancelWithHttpMessagesAsync(string groupName, string serviceName, string taskName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get service level tasks for a service
/// </summary>
/// <remarks>
/// The services resource is the top-level resource that represents the
/// Database Migration Service. This method returns a list of service
/// level tasks owned by a service resource. Some tasks may have a
/// status of Unknown, which indicates that an error occurred while
/// querying the status of that task.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ApiErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ProjectTask>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// <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>
/// Input for the service task to check for OCI drivers.
/// </summary>
public partial class CheckOCIDriverTaskInput
{
/// <summary>
/// Initializes a new instance of the CheckOCIDriverTaskInput class.
/// </summary>
public CheckOCIDriverTaskInput()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the CheckOCIDriverTaskInput class.
/// </summary>
/// <param name="serverVersion">Version of the source server to check
/// against. Optional.</param>
public CheckOCIDriverTaskInput(string serverVersion = default(string))
{
ServerVersion = serverVersion;
CustomInit();
}

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

/// <summary>
/// Gets or sets version of the source server to check against.
/// Optional.
/// </summary>
[JsonProperty(PropertyName = "serverVersion")]
public string ServerVersion { get; set; }

}
}
Loading

0 comments on commit 13b6bf2

Please sign in to comment.