Skip to content

Commit

Permalink
.NET SDK Resource Provider:'DataMigration'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5801'
REST Spec PR Author 'huang91shu'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Apr 30, 2019
1 parent d136159 commit 47e8f95
Show file tree
Hide file tree
Showing 36 changed files with 4,512 additions and 13 deletions.
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 47e8f95

Please sign in to comment.