diff --git a/src/DataMigration/DataMigration.Management.Sdk/DataMigration.Management.Sdk.csproj b/src/DataMigration/DataMigration.Management.Sdk/DataMigration.Management.Sdk.csproj new file mode 100644 index 000000000000..38b7d9713f4e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/DataMigration.Management.Sdk.csproj @@ -0,0 +1,13 @@ + + + DataMigration + + + + netstandard2.0 + Microsoft.Azure.PowerShell.DataMigration.Management.Sdk + Microsoft.Azure.Management.DataMigration + $(NoWarn);CS0108;CS1573 + + + \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/DataMigrationServiceClient.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/DataMigrationServiceClient.cs new file mode 100644 index 000000000000..b4abff003909 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/DataMigrationServiceClient.cs @@ -0,0 +1,393 @@ +// 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.DataMigration +{ + using System.Linq; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// Data Migration Client + /// + public partial class DataMigrationServiceClient : Microsoft.Rest.ServiceClient, IDataMigrationServiceClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + /// + /// Gets or sets json serialization settings. + /// + public Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; private set; } + /// + /// Gets or sets json deserialization settings. + /// + public Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; private set; } + /// + /// Credentials needed for the client to connect to Azure. + /// + public Microsoft.Rest.ServiceClientCredentials Credentials { get; private set; } + + /// + /// The API version to use for this operation. + /// + public string ApiVersion { get; private set; } + + /// + /// Identifier of the subscription + /// + public string SubscriptionId { get; set;} + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set;} + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// /// value is 30. + /// + public int? LongRunningOperationRetryTimeout { get; set;} + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// /// set to true a unique x-ms-client-request-id value is generated and + /// /// included in each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set;} + + /// + /// Gets the IResourceSkusOperations + /// + public virtual IResourceSkusOperations ResourceSkus { get; private set; } + /// + /// Gets the IServicesOperations + /// + public virtual IServicesOperations Services { get; private set; } + /// + /// Gets the ITasksOperations + /// + public virtual ITasksOperations Tasks { get; private set; } + /// + /// Gets the IProjectsOperations + /// + public virtual IProjectsOperations Projects { get; private set; } + /// + /// Gets the IUsagesOperations + /// + public virtual IUsagesOperations Usages { get; private set; } + /// + /// Gets the IOperations + /// + public virtual IOperations Operations { get; private set; } + /// + /// Gets the IFilesOperations + /// + public virtual IFilesOperations Files { get; private set; } + /// + /// Initializes a new instance of the DataMigrationServiceClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling DataMigrationServiceClient.Dispose(). False: will not dispose provided httpClient + protected DataMigrationServiceClient(System.Net.Http.HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + this.Initialize(); + } + /// + /// Initializes a new instance of the DataMigrationServiceClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected DataMigrationServiceClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) + { + this.Initialize(); + } + /// + /// Initializes a new instance of the DataMigrationServiceClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected DataMigrationServiceClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + this.Initialize(); + } + /// + /// Initializes a new instance of the DataMigrationServiceClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected DataMigrationServiceClient(System.Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + this.BaseUri = baseUri; + } + /// + /// Initializes a new instance of the DataMigrationServiceClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected DataMigrationServiceClient(System.Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + + this.BaseUri = baseUri; + } + /// + /// Initializes a new instance of the DataMigrationServiceClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DataMigrationServiceClient(Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + this.Credentials = credentials; + if (this.Credentials != null) + { + this.Credentials.InitializeServiceClient(this); + } + + } + /// + /// Initializes a new instance of the DataMigrationServiceClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling DataMigrationServiceClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public DataMigrationServiceClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + this.Credentials = credentials; + if (this.Credentials != null) + { + this.Credentials.InitializeServiceClient(this); + } + + } + /// + /// Initializes a new instance of the DataMigrationServiceClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DataMigrationServiceClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + this.Credentials = credentials; + if (this.Credentials != null) + { + this.Credentials.InitializeServiceClient(this); + } + + } + /// + /// Initializes a new instance of the DataMigrationServiceClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DataMigrationServiceClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + this.BaseUri = baseUri; + this.Credentials = credentials; + if (this.Credentials != null) + { + this.Credentials.InitializeServiceClient(this); + } + + } + /// + /// Initializes a new instance of the DataMigrationServiceClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Thrown when a required parameter is null + /// + public DataMigrationServiceClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + this.BaseUri = baseUri; + this.Credentials = credentials; + if (this.Credentials != null) + { + this.Credentials.InitializeServiceClient(this); + } + + } + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + + /// + /// Initializes client properties. + /// + private void Initialize() + { + this.ResourceSkus = new ResourceSkusOperations(this); + this.Services = new ServicesOperations(this); + this.Tasks = new TasksOperations(this); + this.Projects = new ProjectsOperations(this); + this.Usages = new UsagesOperations(this); + this.Operations = new Operations(this); + this.Files = new FilesOperations(this); + this.BaseUri = new System.Uri("https://management.azure.com"); + this.ApiVersion = "2018-07-15-preview"; + this.AcceptLanguage = "en-US"; + this.LongRunningOperationRetryTimeout = 30; + this.GenerateClientRequestId = true; + SerializationSettings = new Newtonsoft.Json.JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), + Converters = new System.Collections.Generic.List + { + new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter()); + DeserializationSettings = new Newtonsoft.Json.JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), + Converters = new System.Collections.Generic.List + { + new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("taskType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("taskType")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("commandType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("commandType")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("type")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("type")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("resultType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("resultType")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("resultType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("resultType")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("resultType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("resultType")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("resultType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("resultType")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("resultType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("resultType")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("resultType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("resultType")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("resultType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("resultType")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("resultType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("resultType")); + SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicSerializeJsonConverter("resultType")); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.PolymorphicDeserializeJsonConverter("resultType")); + CustomInitialize(); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new Microsoft.Rest.Azure.CloudErrorJsonConverter()); + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/FilesOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/FilesOperations.cs new file mode 100644 index 000000000000..8331eaae7f31 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/FilesOperations.cs @@ -0,0 +1,1837 @@ +// 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.DataMigration +{ + using System.Linq; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// FilesOperations operations. + /// + internal partial class FilesOperations : Microsoft.Rest.IServiceOperations, IFilesOperations + { + /// + /// Initializes a new instance of the FilesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FilesOperations (DataMigrationServiceClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + this.Client = client; + } + + /// + /// Gets a reference to the DataMigrationServiceClient + /// + public DataMigrationServiceClient Client { get; private set; } + + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of files owned by a project resource. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string groupName, string serviceName, string projectName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The files resource is a nested, proxy-only resource representing a file + /// stored under the project resource. This method retrieves information about + /// a file. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (fileName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "fileName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("fileName", fileName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{fileName}", System.Uri.EscapeDataString(fileName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The PUT method creates a new file or updates an existing one. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// Information about the file + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, ProjectFile parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (fileName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "fileName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("fileName", fileName); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{fileName}", System.Uri.EscapeDataString(fileName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// This method deletes a file. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (fileName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "fileName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("fileName", fileName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{fileName}", System.Uri.EscapeDataString(fileName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// This method updates an existing file. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// Information about the file + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, ProjectFile parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (fileName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "fileName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("fileName", fileName); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{fileName}", System.Uri.EscapeDataString(fileName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// This method is used for requesting storage information using which contents + /// of the file can be downloaded. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> ReadWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (fileName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "fileName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("fileName", fileName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Read", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/read").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{fileName}", System.Uri.EscapeDataString(fileName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// This method is used for requesting information for reading and writing the + /// file content. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> ReadWriteWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (fileName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "fileName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("fileName", fileName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ReadWrite", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{fileName}", System.Uri.EscapeDataString(fileName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of files owned by a project resource. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/FilesOperationsExtensions.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/FilesOperationsExtensions.cs new file mode 100644 index 000000000000..180d17d541b4 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/FilesOperationsExtensions.cs @@ -0,0 +1,409 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// Extension methods for FilesOperations + /// + public static partial class FilesOperationsExtensions + { + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of files owned by a project resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + public static Microsoft.Rest.Azure.IPage List(this IFilesOperations operations, string groupName, string serviceName, string projectName) + { + return ((IFilesOperations)operations).ListAsync(groupName, serviceName, projectName).GetAwaiter().GetResult(); + } + + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of files owned by a project resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListAsync(this IFilesOperations operations, string groupName, string serviceName, string projectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(groupName, serviceName, projectName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The files resource is a nested, proxy-only resource representing a file + /// stored under the project resource. This method retrieves information about + /// a file. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + public static ProjectFile Get(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName) + { + return ((IFilesOperations)operations).GetAsync(groupName, serviceName, projectName, fileName).GetAwaiter().GetResult(); + } + + /// + /// The files resource is a nested, proxy-only resource representing a file + /// stored under the project resource. This method retrieves information about + /// a file. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task GetAsync(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(groupName, serviceName, projectName, fileName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The PUT method creates a new file or updates an existing one. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + public static ProjectFile CreateOrUpdate(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName, ProjectFile parameters) + { + return ((IFilesOperations)operations).CreateOrUpdateAsync(groupName, serviceName, projectName, fileName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The PUT method creates a new file or updates an existing one. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName, ProjectFile parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(groupName, serviceName, projectName, fileName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// This method deletes a file. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + public static void Delete(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName) + { + ((IFilesOperations)operations).DeleteAsync(groupName, serviceName, projectName, fileName).GetAwaiter().GetResult(); + } + + /// + /// This method deletes a file. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task DeleteAsync(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(groupName, serviceName, projectName, fileName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// + /// This method updates an existing file. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + public static ProjectFile Update(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName, ProjectFile parameters) + { + return ((IFilesOperations)operations).UpdateAsync(groupName, serviceName, projectName, fileName, parameters).GetAwaiter().GetResult(); + } + + /// + /// This method updates an existing file. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task UpdateAsync(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName, ProjectFile parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(groupName, serviceName, projectName, fileName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// This method is used for requesting storage information using which contents + /// of the file can be downloaded. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + public static FileStorageInfo Read(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName) + { + return ((IFilesOperations)operations).ReadAsync(groupName, serviceName, projectName, fileName).GetAwaiter().GetResult(); + } + + /// + /// This method is used for requesting storage information using which contents + /// of the file can be downloaded. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task ReadAsync(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ReadWithHttpMessagesAsync(groupName, serviceName, projectName, fileName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// This method is used for requesting information for reading and writing the + /// file content. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + public static FileStorageInfo ReadWrite(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName) + { + return ((IFilesOperations)operations).ReadWriteAsync(groupName, serviceName, projectName, fileName).GetAwaiter().GetResult(); + } + + /// + /// This method is used for requesting information for reading and writing the + /// file content. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task ReadWriteAsync(this IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ReadWriteWithHttpMessagesAsync(groupName, serviceName, projectName, fileName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of files owned by a project resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListNext(this IFilesOperations operations, string nextPageLink) + { + return ((IFilesOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of files owned by a project resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListNextAsync(this IFilesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } +} diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/IDataMigrationServiceClient.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/IDataMigrationServiceClient.cs new file mode 100644 index 000000000000..75e0ccbc8916 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/IDataMigrationServiceClient.cs @@ -0,0 +1,107 @@ +// 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.DataMigration +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// Data Migration Client + /// + public partial interface IDataMigrationServiceClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + Microsoft.Rest.ServiceClientCredentials Credentials { get;} + + + /// + /// The API version to use for this operation. + /// + string ApiVersion { get;} + + + /// + /// Identifier of the subscription + /// + string SubscriptionId { get; set;} + + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set;} + + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set;} + + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// /// set to true a unique x-ms-client-request-id value is generated and + /// /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set;} + + + /// + /// Gets the IResourceSkusOperations + /// + IResourceSkusOperations ResourceSkus { get; } + + /// + /// Gets the IServicesOperations + /// + IServicesOperations Services { get; } + + /// + /// Gets the ITasksOperations + /// + ITasksOperations Tasks { get; } + + /// + /// Gets the IProjectsOperations + /// + IProjectsOperations Projects { get; } + + /// + /// Gets the IUsagesOperations + /// + IUsagesOperations Usages { get; } + + /// + /// Gets the IOperations + /// + IOperations Operations { get; } + + /// + /// Gets the IFilesOperations + /// + IFilesOperations Files { get; } + + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/IFilesOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/IFilesOperations.cs new file mode 100644 index 000000000000..6ce293914696 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/IFilesOperations.cs @@ -0,0 +1,276 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// FilesOperations operations. + /// + public partial interface IFilesOperations + { + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of files owned by a project resource. + /// + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of files owned by a project resource. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string groupName, string serviceName, string projectName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The files resource is a nested, proxy-only resource representing a file + /// stored under the project resource. This method retrieves information about + /// a file. + /// + /// + /// The files resource is a nested, proxy-only resource representing a file + /// stored under the project resource. This method retrieves information about + /// a file. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The PUT method creates a new file or updates an existing one. + /// + /// + /// The PUT method creates a new file or updates an existing one. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// Information about the file + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, ProjectFile parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// This method deletes a file. + /// + /// + /// This method deletes a file. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// This method updates an existing file. + /// + /// + /// This method updates an existing file. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// Information about the file + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, ProjectFile parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// This method is used for requesting storage information using which contents + /// of the file can be downloaded. + /// + /// + /// This method is used for requesting storage information using which contents + /// of the file can be downloaded. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> ReadWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// This method is used for requesting information for reading and writing the + /// file content. + /// + /// + /// This method is used for requesting information for reading and writing the + /// file content. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the File + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> ReadWriteWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string fileName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of files owned by a project resource. + /// + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of files owned by a project resource. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/IOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/IOperations.cs new file mode 100644 index 000000000000..e730085cad65 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/IOperations.cs @@ -0,0 +1,64 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// Operations operations. + /// + public partial interface IOperations + { + /// + /// Lists all available actions exposed by the Database Migration Service + /// resource provider. + /// + /// + /// Lists all available actions exposed by the Database Migration Service + /// resource provider. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Lists all available actions exposed by the Database Migration Service + /// resource provider. + /// + /// + /// Lists all available actions exposed by the Database Migration Service + /// resource provider. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/IProjectsOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/IProjectsOperations.cs new file mode 100644 index 000000000000..a1e29221d2b7 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/IProjectsOperations.cs @@ -0,0 +1,204 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// ProjectsOperations operations. + /// + public partial interface IProjectsOperations + { + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of projects owned by a service + /// resource. + /// + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of projects owned by a service + /// resource. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The project resource is a nested resource representing a stored migration + /// project. The PUT method creates a new project or updates an existing one. + /// + /// + /// The project resource is a nested resource representing a stored migration + /// project. The PUT method creates a new project or updates an existing one. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Information about the project + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, Project parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The project resource is a nested resource representing a stored migration + /// project. The GET method retrieves information about a project. + /// + /// + /// The project resource is a nested resource representing a stored migration + /// project. The GET method retrieves information about a project. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string groupName, string serviceName, string projectName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The project resource is a nested resource representing a stored migration + /// project. The DELETE method deletes a project. + /// + /// + /// The project resource is a nested resource representing a stored migration + /// project. The DELETE method deletes a project. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string groupName, string serviceName, string projectName, bool? deleteRunningTasks = default(bool?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The project resource is a nested resource representing a stored migration + /// project. The PATCH method updates an existing project. + /// + /// + /// The project resource is a nested resource representing a stored migration + /// project. The PATCH method updates an existing project. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Information about the project + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, Project parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of projects owned by a service + /// resource. + /// + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of projects owned by a service + /// resource. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/IResourceSkusOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/IResourceSkusOperations.cs new file mode 100644 index 000000000000..991da5c1a095 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/IResourceSkusOperations.cs @@ -0,0 +1,60 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// ResourceSkusOperations operations. + /// + public partial interface IResourceSkusOperations + { + /// + /// The skus action returns the list of SKUs that DMS supports. + /// + /// + /// The skus action returns the list of SKUs that DMS supports. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListSkusWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The skus action returns the list of SKUs that DMS supports. + /// + /// + /// The skus action returns the list of SKUs that DMS supports. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListSkusNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/IServicesOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/IServicesOperations.cs new file mode 100644 index 000000000000..27f51b1bf322 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/IServicesOperations.cs @@ -0,0 +1,638 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// ServicesOperations operations. + /// + public partial interface IServicesOperations + { + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PUT method creates a new service or updates + /// an existing one. When a service is updated, existing child resources (i.e. + /// tasks) are unaffected. Services currently support a single kind, "vm", + /// which refers to a VM-based service, although other kinds may be added in + /// the future. This method can change the kind, SKU, and network of the + /// service, but if tasks are currently running (i.e. the service is busy), + /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will + /// reply when successful with 200 OK or 201 Created. Long-running operations + /// use the provisioningState property. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PUT method creates a new service or updates + /// an existing one. When a service is updated, existing child resources (i.e. + /// tasks) are unaffected. Services currently support a single kind, "vm", + /// which refers to a VM-based service, although other kinds may be added in + /// the future. This method can change the kind, SKU, and network of the + /// service, but if tasks are currently running (i.e. the service is busy), + /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will + /// reply when successful with 200 OK or 201 Created. Long-running operations + /// use the provisioningState property. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Information about the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string groupName, string serviceName, DataMigrationService parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The GET method retrieves information about a + /// service instance. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The GET method retrieves information about a + /// service instance. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The DELETE method deletes a service. Any + /// running tasks will be canceled. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The DELETE method deletes a service. Any + /// running tasks will be canceled. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string groupName, string serviceName, bool? deleteRunningTasks = default(bool?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PATCH method updates an existing service. + /// This method can change the kind, SKU, and network of the service, but if + /// tasks are currently running (i.e. the service is busy), this will fail with + /// 400 Bad Request ("ServiceIsBusy"). + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PATCH method updates an existing service. + /// This method can change the kind, SKU, and network of the service, but if + /// tasks are currently running (i.e. the service is busy), this will fail with + /// 400 Bad Request ("ServiceIsBusy"). + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Information about the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string groupName, string serviceName, DataMigrationService parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action performs a health check and returns + /// the status of the service and virtual machine size. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action performs a health check and returns + /// the status of the service and virtual machine size. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> CheckStatusWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action starts the service and the service + /// can be used for data migration. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action starts the service and the service + /// can be used for data migration. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task StartWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action stops the service and the service + /// cannot be used for data migration. The service owner won't be billed when + /// the service is stopped. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action stops the service and the service + /// cannot be used for data migration. The service owner won't be billed when + /// the service is stopped. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task StopWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The skus action returns the list of SKUs that a + /// service resource can be updated to. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The skus action returns the list of SKUs that a + /// service resource can be updated to. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListSkusWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// This method checks whether a proposed nested resource name is valid and + /// available. + /// + /// + /// This method checks whether a proposed nested resource name is valid and + /// available. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Requested name to validate + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> CheckChildrenNameAvailabilityWithHttpMessagesAsync(string groupName, string serviceName, NameAvailabilityRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The Services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a resource group. + /// + /// + /// The Services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a resource group. + /// + /// + /// Name of the resource group + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string groupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a subscription. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a subscription. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// This method checks whether a proposed top-level resource name is valid and + /// available. + /// + /// + /// This method checks whether a proposed top-level resource name is valid and + /// available. + /// + /// + /// The Azure region of the operation + /// + /// + /// Requested name to validate + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> CheckNameAvailabilityWithHttpMessagesAsync(string location, NameAvailabilityRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PUT method creates a new service or updates + /// an existing one. When a service is updated, existing child resources (i.e. + /// tasks) are unaffected. Services currently support a single kind, "vm", + /// which refers to a VM-based service, although other kinds may be added in + /// the future. This method can change the kind, SKU, and network of the + /// service, but if tasks are currently running (i.e. the service is busy), + /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will + /// reply when successful with 200 OK or 201 Created. Long-running operations + /// use the provisioningState property. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PUT method creates a new service or updates + /// an existing one. When a service is updated, existing child resources (i.e. + /// tasks) are unaffected. Services currently support a single kind, "vm", + /// which refers to a VM-based service, although other kinds may be added in + /// the future. This method can change the kind, SKU, and network of the + /// service, but if tasks are currently running (i.e. the service is busy), + /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will + /// reply when successful with 200 OK or 201 Created. Long-running operations + /// use the provisioningState property. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Information about the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string groupName, string serviceName, DataMigrationService parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The DELETE method deletes a service. Any + /// running tasks will be canceled. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The DELETE method deletes a service. Any + /// running tasks will be canceled. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string groupName, string serviceName, bool? deleteRunningTasks = default(bool?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PATCH method updates an existing service. + /// This method can change the kind, SKU, and network of the service, but if + /// tasks are currently running (i.e. the service is busy), this will fail with + /// 400 Bad Request ("ServiceIsBusy"). + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PATCH method updates an existing service. + /// This method can change the kind, SKU, and network of the service, but if + /// tasks are currently running (i.e. the service is busy), this will fail with + /// 400 Bad Request ("ServiceIsBusy"). + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Information about the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string groupName, string serviceName, DataMigrationService parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action starts the service and the service + /// can be used for data migration. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action starts the service and the service + /// can be used for data migration. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task BeginStartWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action stops the service and the service + /// cannot be used for data migration. The service owner won't be billed when + /// the service is stopped. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action stops the service and the service + /// cannot be used for data migration. The service owner won't be billed when + /// the service is stopped. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task BeginStopWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The skus action returns the list of SKUs that a + /// service resource can be updated to. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The skus action returns the list of SKUs that a + /// service resource can be updated to. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListSkusNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The Services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a resource group. + /// + /// + /// The Services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a subscription. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/ITasksOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/ITasksOperations.cs new file mode 100644 index 000000000000..3ffb44888318 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/ITasksOperations.cs @@ -0,0 +1,316 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// TasksOperations operations. + /// + public partial interface ITasksOperations + { + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of 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. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of 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. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Filter tasks by task type + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskType = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The PUT method creates a new task or updates + /// an existing one, although since tasks have no mutable custom properties, + /// there is little reason to update an existing one. + /// + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The PUT method creates a new task or updates + /// an existing one, although since tasks have no mutable custom properties, + /// there is little reason to update an existing one. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Information about the task + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, ProjectTask parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The GET method retrieves information about a + /// task. + /// + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The GET method retrieves information about a + /// task. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Expand the response + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, string expand = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The DELETE method deletes a task, canceling it + /// first if it's running. + /// + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The DELETE method deletes a task, canceling it + /// first if it's running. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, bool? deleteRunningTasks = default(bool?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The PATCH method updates an existing task, but + /// since tasks have no mutable custom properties, there is little reason to do + /// so. + /// + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The PATCH method updates an existing task, but + /// since tasks have no mutable custom properties, there is little reason to do + /// so. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Information about the task + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, ProjectTask parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. This method cancels a task if it's currently + /// queued or running. + /// + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. This method cancels a task if it's currently + /// queued or running. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> CancelWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. This method executes a command on a running + /// task. + /// + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. This method executes a command on a running + /// task. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Command to execute + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> CommandWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, CommandProperties parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of 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. + /// + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of 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. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/IUsagesOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/IUsagesOperations.cs new file mode 100644 index 000000000000..c651a7e28ff1 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/IUsagesOperations.cs @@ -0,0 +1,67 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// UsagesOperations operations. + /// + public partial interface IUsagesOperations + { + /// + /// This method returns region-specific quotas and resource usage information + /// for the Database Migration Service. + /// + /// + /// This method returns region-specific quotas and resource usage information + /// for the Database Migration Service. + /// + /// + /// The Azure region of the operation + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string location, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// This method returns region-specific quotas and resource usage information + /// for the Database Migration Service. + /// + /// + /// This method returns region-specific quotas and resource usage information + /// for the Database Migration Service. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ApiError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ApiError.cs new file mode 100644 index 000000000000..7c4541651c58 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ApiError.cs @@ -0,0 +1,48 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Error information. + /// + public partial class ApiError + { + /// + /// Initializes a new instance of the ApiError class. + /// + public ApiError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiError class. + /// + + /// Error information in OData format + /// + public ApiError(ODataError error = default(ODataError)) + + { + this.Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets error information in OData format + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "error")] + public ODataError Error {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ApiErrorException.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ApiErrorException.cs new file mode 100644 index 000000000000..3a839b139a40 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ApiErrorException.cs @@ -0,0 +1,55 @@ +// 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.DataMigration.Models +{ + + /// + /// Exception thrown for an invalid response with ApiError information. + /// + public partial class ApiErrorException : Microsoft.Rest.RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public Microsoft.Rest.HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public Microsoft.Rest.HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public ApiError Body { get; set; } + + /// + /// Initializes a new instance of the ApiErrorException class. + /// + public ApiErrorException() + { + } + + /// + /// Initializes a new instance of the ApiError class. + /// + /// The exception message. + public ApiErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ApiError class. + /// + /// The exception message. + /// Inner exception. + public ApiErrorException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AuthenticationType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AuthenticationType.cs new file mode 100644 index 000000000000..09b8f7f0bae7 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AuthenticationType.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.DataMigration.Models +{ + + /// + /// Defines values for AuthenticationType. + /// + + + public static class AuthenticationType + { + public const string None = "None"; + public const string WindowsAuthentication = "WindowsAuthentication"; + public const string SqlAuthentication = "SqlAuthentication"; + public const string ActiveDirectoryIntegrated = "ActiveDirectoryIntegrated"; + public const string ActiveDirectoryPassword = "ActiveDirectoryPassword"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AvailableServiceSku.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AvailableServiceSku.cs new file mode 100644 index 000000000000..25bc00b654f2 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AvailableServiceSku.cs @@ -0,0 +1,68 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes the available service SKU. + /// + public partial class AvailableServiceSku + { + /// + /// Initializes a new instance of the AvailableServiceSku class. + /// + public AvailableServiceSku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AvailableServiceSku class. + /// + + /// The resource type, including the provider namespace + /// + + /// SKU name, tier, etc. + /// + + /// A description of the scaling capacities of the SKU + /// + public AvailableServiceSku(string resourceType = default(string), AvailableServiceSkuSku sku = default(AvailableServiceSkuSku), AvailableServiceSkuCapacity capacity = default(AvailableServiceSkuCapacity)) + + { + this.ResourceType = resourceType; + this.Sku = sku; + this.Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the resource type, including the provider namespace + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "resourceType")] + public string ResourceType {get; set; } + + /// + /// Gets or sets sKU name, tier, etc. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sku")] + public AvailableServiceSkuSku Sku {get; set; } + + /// + /// Gets or sets a description of the scaling capacities of the SKU + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "capacity")] + public AvailableServiceSkuCapacity Capacity {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AvailableServiceSkuCapacity.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AvailableServiceSkuCapacity.cs new file mode 100644 index 000000000000..3ef57618b4cd --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AvailableServiceSkuCapacity.cs @@ -0,0 +1,78 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// A description of the scaling capacities of the SKU + /// + public partial class AvailableServiceSkuCapacity + { + /// + /// Initializes a new instance of the AvailableServiceSkuCapacity class. + /// + public AvailableServiceSkuCapacity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AvailableServiceSkuCapacity class. + /// + + /// The minimum capacity, usually 0 or 1. + /// + + /// The maximum capacity + /// + + /// The default capacity + /// + + /// The scalability approach + /// Possible values include: 'none', 'manual', 'automatic' + public AvailableServiceSkuCapacity(int? minimum = default(int?), int? maximum = default(int?), int? defaultProperty = default(int?), string scaleType = default(string)) + + { + this.Minimum = minimum; + this.Maximum = maximum; + this.DefaultProperty = defaultProperty; + this.ScaleType = scaleType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the minimum capacity, usually 0 or 1. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "minimum")] + public int? Minimum {get; set; } + + /// + /// Gets or sets the maximum capacity + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "maximum")] + public int? Maximum {get; set; } + + /// + /// Gets or sets the default capacity + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "default")] + public int? DefaultProperty {get; set; } + + /// + /// Gets or sets the scalability approach Possible values include: 'none', 'manual', 'automatic' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "scaleType")] + public string ScaleType {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AvailableServiceSkuSku.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AvailableServiceSkuSku.cs new file mode 100644 index 000000000000..45bf1ef55258 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AvailableServiceSkuSku.cs @@ -0,0 +1,80 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// SKU name, tier, etc. + /// + public partial class AvailableServiceSkuSku + { + /// + /// Initializes a new instance of the AvailableServiceSkuSku class. + /// + public AvailableServiceSkuSku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AvailableServiceSkuSku class. + /// + + /// The name of the SKU + /// + + /// SKU family + /// + + /// SKU size + /// + + /// The tier of the SKU, such as "Basic", "General Purpose", or "Business + /// Critical" + /// + public AvailableServiceSkuSku(string name = default(string), string family = default(string), string size = default(string), string tier = default(string)) + + { + this.Name = name; + this.Family = family; + this.Size = size; + this.Tier = tier; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the name of the SKU + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets sKU family + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "family")] + public string Family {get; set; } + + /// + /// Gets or sets sKU size + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "size")] + public string Size {get; set; } + + /// + /// Gets or sets the tier of the SKU, such as "Basic", "General Purpose", or + /// "Business Critical" + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tier")] + public string Tier {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AzureActiveDirectoryApp.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AzureActiveDirectoryApp.cs new file mode 100644 index 000000000000..4b588a921c69 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/AzureActiveDirectoryApp.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.DataMigration.Models +{ + using System.Linq; + + /// + /// Azure Active Directory Application + /// + public partial class AzureActiveDirectoryApp + { + /// + /// Initializes a new instance of the AzureActiveDirectoryApp class. + /// + public AzureActiveDirectoryApp() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureActiveDirectoryApp class. + /// + + /// Application ID of the Azure Active Directory Application + /// + + /// Key used to authenticate to the Azure Active Directory Application + /// + + /// Tenant id of the customer + /// + public AzureActiveDirectoryApp(string applicationId, string appKey, string tenantId) + + { + this.ApplicationId = applicationId; + this.AppKey = appKey; + this.TenantId = tenantId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets application ID of the Azure Active Directory Application + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "applicationId")] + public string ApplicationId {get; set; } + + /// + /// Gets or sets key used to authenticate to the Azure Active Directory + /// Application + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "appKey")] + public string AppKey {get; set; } + + /// + /// Gets or sets tenant id of the customer + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tenantId")] + public string TenantId {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.ApplicationId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ApplicationId"); + } + if (this.AppKey == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "AppKey"); + } + if (this.TenantId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TenantId"); + } + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupFileInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupFileInfo.cs new file mode 100644 index 000000000000..4f4cc4badb01 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupFileInfo.cs @@ -0,0 +1,69 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Information of the backup file + /// + public partial class BackupFileInfo + { + /// + /// Initializes a new instance of the BackupFileInfo class. + /// + public BackupFileInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BackupFileInfo class. + /// + + /// Location of the backup file in shared folder + /// + + /// Sequence number of the backup file in the backup set + /// + + /// Status of the backup file during migration + /// Possible values include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', + /// 'Restoring', 'Restored', 'Cancelled' + public BackupFileInfo(string fileLocation = default(string), int? familySequenceNumber = default(int?), string status = default(string)) + + { + this.FileLocation = fileLocation; + this.FamilySequenceNumber = familySequenceNumber; + this.Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets location of the backup file in shared folder + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fileLocation")] + public string FileLocation {get; set; } + + /// + /// Gets or sets sequence number of the backup file in the backup set + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "familySequenceNumber")] + public int? FamilySequenceNumber {get; set; } + + /// + /// Gets or sets status of the backup file during migration Possible values include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', 'Restored', 'Cancelled' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + public string Status {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupFileStatus.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupFileStatus.cs new file mode 100644 index 000000000000..5e313dd56ec4 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupFileStatus.cs @@ -0,0 +1,24 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for BackupFileStatus. + /// + + + public static class BackupFileStatus + { + public const string Arrived = "Arrived"; + public const string Queued = "Queued"; + public const string Uploading = "Uploading"; + public const string Uploaded = "Uploaded"; + public const string Restoring = "Restoring"; + public const string Restored = "Restored"; + public const string Cancelled = "Cancelled"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupMode.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupMode.cs new file mode 100644 index 000000000000..df4de3c23edf --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupMode.cs @@ -0,0 +1,19 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for BackupMode. + /// + + + public static class BackupMode + { + public const string CreateBackup = "CreateBackup"; + public const string ExistingBackup = "ExistingBackup"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupSetInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupSetInfo.cs new file mode 100644 index 000000000000..4b7d464e9ca6 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupSetInfo.cs @@ -0,0 +1,140 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Information of backup set + /// + public partial class BackupSetInfo + { + /// + /// Initializes a new instance of the BackupSetInfo class. + /// + public BackupSetInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BackupSetInfo class. + /// + + /// Id for the set of backup files + /// + + /// First log sequence number of the backup file + /// + + /// Last log sequence number of the backup file + /// + + /// Last modified time of the backup file in share location + /// + + /// Enum of the different backup types + /// Possible values include: 'Database', 'TransactionLog', 'File', + /// 'DifferentialDatabase', 'DifferentialFile', 'Partial', + /// 'DifferentialPartial' + + /// List of files in the backup set + /// + + /// Name of the database to which the backup set belongs + /// + + /// Date and time that the backup operation began + /// + + /// Date and time that the backup operation finished + /// + + /// Whether the backup set is restored or not + /// + public BackupSetInfo(string backupSetId = default(string), string firstLsn = default(string), string lastLsn = default(string), System.DateTimeOffset? lastModifiedTime = default(System.DateTimeOffset?), string backupType = default(string), System.Collections.Generic.IList listOfBackupFiles = default(System.Collections.Generic.IList), string databaseName = default(string), System.DateTimeOffset? backupStartDate = default(System.DateTimeOffset?), System.DateTimeOffset? backupFinishedDate = default(System.DateTimeOffset?), bool? isBackupRestored = default(bool?)) + + { + this.BackupSetId = backupSetId; + this.FirstLsn = firstLsn; + this.LastLsn = lastLsn; + this.LastModifiedTime = lastModifiedTime; + this.BackupType = backupType; + this.ListOfBackupFiles = listOfBackupFiles; + this.DatabaseName = databaseName; + this.BackupStartDate = backupStartDate; + this.BackupFinishedDate = backupFinishedDate; + this.IsBackupRestored = isBackupRestored; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets id for the set of backup files + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupSetId")] + public string BackupSetId {get; set; } + + /// + /// Gets or sets first log sequence number of the backup file + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "firstLsn")] + public string FirstLsn {get; set; } + + /// + /// Gets or sets last log sequence number of the backup file + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lastLsn")] + public string LastLsn {get; set; } + + /// + /// Gets or sets last modified time of the backup file in share location + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lastModifiedTime")] + public System.DateTimeOffset? LastModifiedTime {get; set; } + + /// + /// Gets or sets enum of the different backup types Possible values include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', 'DifferentialFile', 'Partial', 'DifferentialPartial' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupType")] + public string BackupType {get; set; } + + /// + /// Gets or sets list of files in the backup set + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "listOfBackupFiles")] + public System.Collections.Generic.IList ListOfBackupFiles {get; set; } + + /// + /// Gets or sets name of the database to which the backup set belongs + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; set; } + + /// + /// Gets or sets date and time that the backup operation began + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupStartDate")] + public System.DateTimeOffset? BackupStartDate {get; set; } + + /// + /// Gets or sets date and time that the backup operation finished + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupFinishedDate")] + public System.DateTimeOffset? BackupFinishedDate {get; set; } + + /// + /// Gets or sets whether the backup set is restored or not + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isBackupRestored")] + public bool? IsBackupRestored {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupType.cs new file mode 100644 index 000000000000..229d008bd1d6 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BackupType.cs @@ -0,0 +1,24 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for BackupType. + /// + + + public static class BackupType + { + public const string Database = "Database"; + public const string TransactionLog = "TransactionLog"; + public const string File = "File"; + public const string DifferentialDatabase = "DifferentialDatabase"; + public const string DifferentialFile = "DifferentialFile"; + public const string Partial = "Partial"; + public const string DifferentialPartial = "DifferentialPartial"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BlobShare.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BlobShare.cs new file mode 100644 index 000000000000..48dc2c62bb43 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/BlobShare.cs @@ -0,0 +1,62 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Blob container storage information. + /// + public partial class BlobShare + { + /// + /// Initializes a new instance of the BlobShare class. + /// + public BlobShare() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BlobShare class. + /// + + /// SAS URI of Azure Storage Account Container. + /// + public BlobShare(string sasUri) + + { + this.SasUri = sasUri; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets sAS URI of Azure Storage Account Container. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sasUri")] + public string SasUri {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SasUri == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SasUri"); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/CommandProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/CommandProperties.cs new file mode 100644 index 000000000000..03c2fef94aa5 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/CommandProperties.cs @@ -0,0 +1,61 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Base class for all types of DMS command properties. If command is not + /// supported by current client, this object is returned. + /// + [Newtonsoft.Json.JsonObject("CommandProperties")] + public partial class CommandProperties + { + /// + /// Initializes a new instance of the CommandProperties class. + /// + public CommandProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CommandProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the command. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + /// 'Failed' + public CommandProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string)) + + { + this.Errors = errors; + this.State = state; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets array of errors. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errors")] + public System.Collections.Generic.IList Errors {get; private set; } + + /// + /// Gets the state of the command. This is ignored if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', 'Failed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/CommandState.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/CommandState.cs new file mode 100644 index 000000000000..ae995c94f996 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/CommandState.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.DataMigration.Models +{ + + /// + /// Defines values for CommandState. + /// + + + public static class CommandState + { + public const string Unknown = "Unknown"; + public const string Accepted = "Accepted"; + public const string Running = "Running"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToMongoDbTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToMongoDbTaskProperties.cs new file mode 100644 index 000000000000..11ccedea31ae --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToMongoDbTaskProperties.cs @@ -0,0 +1,97 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates the connection to and provides + /// information about a MongoDB server + /// + [Newtonsoft.Json.JsonObject("Connect.MongoDb")] + public partial class ConnectToMongoDbTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToMongoDbTaskProperties class. + /// + public ConnectToMongoDbTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToMongoDbTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Describes a connection to a MongoDB data source + /// + + /// An array containing a single MongoDbClusterInfo object + /// + public ConnectToMongoDbTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), MongoDbConnectionInfo input = default(MongoDbConnectionInfo), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets describes a connection to a MongoDB data source + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MongoDbConnectionInfo Input {get; set; } + + /// + /// Gets an array containing a single MongoDbClusterInfo object + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + if (this.Output != null) + { + foreach (var element in this.Output) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceMySqlTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceMySqlTaskInput.cs new file mode 100644 index 000000000000..3c6258873929 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceMySqlTaskInput.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that validates MySQL database connection + /// + public partial class ConnectToSourceMySqlTaskInput + { + /// + /// Initializes a new instance of the ConnectToSourceMySqlTaskInput class. + /// + public ConnectToSourceMySqlTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceMySqlTaskInput class. + /// + + /// Information for connecting to MySQL source + /// + + /// Target Platform for the migration + /// Possible values include: 'SqlServer', 'AzureDbForMySQL' + + /// Permission group for validations + /// Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB', + /// 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' + public ConnectToSourceMySqlTaskInput(MySqlConnectionInfo sourceConnectionInfo, string targetPlatform = default(string), ServerLevelPermissionsGroup? checkPermissionsGroup = default(ServerLevelPermissionsGroup?)) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetPlatform = targetPlatform; + this.CheckPermissionsGroup = checkPermissionsGroup; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets information for connecting to MySQL source + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public MySqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets target Platform for the migration Possible values include: 'SqlServer', 'AzureDbForMySQL' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetPlatform")] + public string TargetPlatform {get; set; } + + /// + /// Gets or sets permission group for validations Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB', 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "checkPermissionsGroup")] + public ServerLevelPermissionsGroup? CheckPermissionsGroup {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceMySqlTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceMySqlTaskProperties.cs new file mode 100644 index 000000000000..1912c95fa01e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceMySqlTaskProperties.cs @@ -0,0 +1,87 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates MySQL database connection + /// + [Newtonsoft.Json.JsonObject("ConnectToSource.MySql")] + public partial class ConnectToSourceMySqlTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToSourceMySqlTaskProperties class. + /// + public ConnectToSourceMySqlTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceMySqlTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ConnectToSourceMySqlTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ConnectToSourceMySqlTaskInput input = default(ConnectToSourceMySqlTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ConnectToSourceMySqlTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceNonSqlTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceNonSqlTaskOutput.cs new file mode 100644 index 000000000000..1b878b57546c --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceNonSqlTaskOutput.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for connect to Oracle, MySQL type source + /// + public partial class ConnectToSourceNonSqlTaskOutput + { + /// + /// Initializes a new instance of the ConnectToSourceNonSqlTaskOutput class. + /// + public ConnectToSourceNonSqlTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceNonSqlTaskOutput class. + /// + + /// Result identifier + /// + + /// Server brand version + /// + + /// Server properties + /// + + /// List of databases on the server + /// + + /// Validation errors associated with the task + /// + public ConnectToSourceNonSqlTaskOutput(string id = default(string), string sourceServerBrandVersion = default(string), ServerProperties serverProperties = default(ServerProperties), System.Collections.Generic.IList databases = default(System.Collections.Generic.IList), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.Id = id; + this.SourceServerBrandVersion = sourceServerBrandVersion; + this.ServerProperties = serverProperties; + this.Databases = databases; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerBrandVersion")] + public string SourceServerBrandVersion {get; private set; } + + /// + /// Gets server properties + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverProperties")] + public ServerProperties ServerProperties {get; private set; } + + /// + /// Gets list of databases on the server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IList Databases {get; private set; } + + /// + /// Gets validation errors associated with the task + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourcePostgreSqlSyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourcePostgreSqlSyncTaskInput.cs new file mode 100644 index 000000000000..1181132dcc09 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourcePostgreSqlSyncTaskInput.cs @@ -0,0 +1,66 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that validates connection to PostgreSQL and source + /// server requirements + /// + public partial class ConnectToSourcePostgreSqlSyncTaskInput + { + /// + /// Initializes a new instance of the ConnectToSourcePostgreSqlSyncTaskInput class. + /// + public ConnectToSourcePostgreSqlSyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourcePostgreSqlSyncTaskInput class. + /// + + /// Connection information for source PostgreSQL server + /// + public ConnectToSourcePostgreSqlSyncTaskInput(PostgreSqlConnectionInfo sourceConnectionInfo) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for source PostgreSQL server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public PostgreSqlConnectionInfo SourceConnectionInfo {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourcePostgreSqlSyncTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourcePostgreSqlSyncTaskOutput.cs new file mode 100644 index 000000000000..1b9fc759fdd7 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourcePostgreSqlSyncTaskOutput.cs @@ -0,0 +1,89 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that validates connection to PostgreSQL and source + /// server requirements + /// + public partial class ConnectToSourcePostgreSqlSyncTaskOutput + { + /// + /// Initializes a new instance of the ConnectToSourcePostgreSqlSyncTaskOutput class. + /// + public ConnectToSourcePostgreSqlSyncTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourcePostgreSqlSyncTaskOutput class. + /// + + /// Result identifier + /// + + /// Version of the source server + /// + + /// List of databases on source server + /// + + /// Source server brand version + /// + + /// Validation errors associated with the task + /// + public ConnectToSourcePostgreSqlSyncTaskOutput(string id = default(string), string sourceServerVersion = default(string), System.Collections.Generic.IList databases = default(System.Collections.Generic.IList), string sourceServerBrandVersion = default(string), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.Id = id; + this.SourceServerVersion = sourceServerVersion; + this.Databases = databases; + this.SourceServerBrandVersion = sourceServerBrandVersion; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets version of the source server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerVersion")] + public string SourceServerVersion {get; private set; } + + /// + /// Gets list of databases on source server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IList Databases {get; private set; } + + /// + /// Gets source server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerBrandVersion")] + public string SourceServerBrandVersion {get; private set; } + + /// + /// Gets validation errors associated with the task + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourcePostgreSqlSyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourcePostgreSqlSyncTaskProperties.cs new file mode 100644 index 000000000000..130b5445aca1 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourcePostgreSqlSyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates connection to PostgreSQL server and + /// source server requirements for online migration + /// + [Newtonsoft.Json.JsonObject("ConnectToSource.PostgreSql.Sync")] + public partial class ConnectToSourcePostgreSqlSyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToSourcePostgreSqlSyncTaskProperties class. + /// + public ConnectToSourcePostgreSqlSyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourcePostgreSqlSyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ConnectToSourcePostgreSqlSyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ConnectToSourcePostgreSqlSyncTaskInput input = default(ConnectToSourcePostgreSqlSyncTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ConnectToSourcePostgreSqlSyncTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerSyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerSyncTaskProperties.cs new file mode 100644 index 000000000000..ad81104ed9ff --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerSyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates connection to SQL Server and source + /// server requirements for online migration + /// + [Newtonsoft.Json.JsonObject("ConnectToSource.SqlServer.Sync")] + public partial class ConnectToSourceSqlServerSyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToSourceSqlServerSyncTaskProperties class. + /// + public ConnectToSourceSqlServerSyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceSqlServerSyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ConnectToSourceSqlServerSyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ConnectToSourceSqlServerTaskInput input = default(ConnectToSourceSqlServerTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ConnectToSourceSqlServerTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskInput.cs new file mode 100644 index 000000000000..74e13a75af0d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskInput.cs @@ -0,0 +1,109 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that validates connection to SQL Server and also + /// validates source server requirements + /// + public partial class ConnectToSourceSqlServerTaskInput + { + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskInput class. + /// + public ConnectToSourceSqlServerTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskInput class. + /// + + /// Connection information for Source SQL Server + /// + + /// Permission group for validations + /// Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB', + /// 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' + + /// Flag for whether to collect logins from source server. + /// + + /// Flag for whether to collect agent jobs from source server. + /// + + /// Flag for whether to collect TDE Certificate names from source server. + /// + public ConnectToSourceSqlServerTaskInput(SqlConnectionInfo sourceConnectionInfo, ServerLevelPermissionsGroup? checkPermissionsGroup = default(ServerLevelPermissionsGroup?), bool? collectLogins = default(bool?), bool? collectAgentJobs = default(bool?), bool? collectTdeCertificateInfo = default(bool?)) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + this.CheckPermissionsGroup = checkPermissionsGroup; + this.CollectLogins = collectLogins; + this.CollectAgentJobs = collectAgentJobs; + this.CollectTdeCertificateInfo = collectTdeCertificateInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for Source SQL Server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public SqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets permission group for validations Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB', 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "checkPermissionsGroup")] + public ServerLevelPermissionsGroup? CheckPermissionsGroup {get; set; } + + /// + /// Gets or sets flag for whether to collect logins from source server. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "collectLogins")] + public bool? CollectLogins {get; set; } + + /// + /// Gets or sets flag for whether to collect agent jobs from source server. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "collectAgentJobs")] + public bool? CollectAgentJobs {get; set; } + + /// + /// Gets or sets flag for whether to collect TDE Certificate names from source + /// server. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "collectTdeCertificateInfo")] + public bool? CollectTdeCertificateInfo {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutput.cs new file mode 100644 index 000000000000..2d21db622936 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutput.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that validates connection to SQL Server and also + /// validates source server requirements + /// + [Newtonsoft.Json.JsonObject("ConnectToSourceSqlServerTaskOutput")] + public partial class ConnectToSourceSqlServerTaskOutput + { + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskOutput class. + /// + public ConnectToSourceSqlServerTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskOutput class. + /// + + /// Result identifier + /// + public ConnectToSourceSqlServerTaskOutput(string id = default(string)) + + { + this.Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputAgentJobLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputAgentJobLevel.cs new file mode 100644 index 000000000000..a9e8869e4973 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputAgentJobLevel.cs @@ -0,0 +1,114 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Agent Job level output for the task that validates connection to SQL Server + /// and also validates source server requirements + /// + [Newtonsoft.Json.JsonObject("AgentJobLevelOutput")] + public partial class ConnectToSourceSqlServerTaskOutputAgentJobLevel : ConnectToSourceSqlServerTaskOutput + { + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskOutputAgentJobLevel class. + /// + public ConnectToSourceSqlServerTaskOutputAgentJobLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskOutputAgentJobLevel class. + /// + + /// Result identifier + /// + + /// Agent Job name + /// + + /// The type of Agent Job. + /// + + /// The state of the original Agent Job. + /// + + /// The owner of the Agent Job + /// + + /// UTC Date and time when the Agent Job was last executed. + /// + + /// Validation errors + /// + + /// Information about eligibility of agent job for migration. + /// + public ConnectToSourceSqlServerTaskOutputAgentJobLevel(string id = default(string), string name = default(string), string jobCategory = default(string), bool? isEnabled = default(bool?), string jobOwner = default(string), System.DateTimeOffset? lastExecutedOn = default(System.DateTimeOffset?), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList), MigrationEligibilityInfo migrationEligibility = default(MigrationEligibilityInfo)) + + : base(id) + { + this.Name = name; + this.JobCategory = jobCategory; + this.IsEnabled = isEnabled; + this.JobOwner = jobOwner; + this.LastExecutedOn = lastExecutedOn; + this.ValidationErrors = validationErrors; + this.MigrationEligibility = migrationEligibility; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets agent Job name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets the type of Agent Job. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "jobCategory")] + public string JobCategory {get; private set; } + + /// + /// Gets the state of the original Agent Job. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isEnabled")] + public bool? IsEnabled {get; private set; } + + /// + /// Gets the owner of the Agent Job + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "jobOwner")] + public string JobOwner {get; private set; } + + /// + /// Gets uTC Date and time when the Agent Job was last executed. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lastExecutedOn")] + public System.DateTimeOffset? LastExecutedOn {get; private set; } + + /// + /// Gets validation errors + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + + /// + /// Gets information about eligibility of agent job for migration. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationEligibility")] + public MigrationEligibilityInfo MigrationEligibility {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputDatabaseLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputDatabaseLevel.cs new file mode 100644 index 000000000000..913019a4320f --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputDatabaseLevel.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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database level output for the task that validates connection to SQL Server + /// and also validates source server requirements + /// + [Newtonsoft.Json.JsonObject("DatabaseLevelOutput")] + public partial class ConnectToSourceSqlServerTaskOutputDatabaseLevel : ConnectToSourceSqlServerTaskOutput + { + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskOutputDatabaseLevel class. + /// + public ConnectToSourceSqlServerTaskOutputDatabaseLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskOutputDatabaseLevel class. + /// + + /// Result identifier + /// + + /// Database name + /// + + /// Size of the file in megabytes + /// + + /// The list of database files + /// + + /// SQL Server compatibility level of database + /// Possible values include: 'CompatLevel80', 'CompatLevel90', + /// 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', + /// 'CompatLevel140' + + /// State of the database + /// Possible values include: 'Online', 'Restoring', 'Recovering', + /// 'RecoveryPending', 'Suspect', 'Emergency', 'Offline', 'Copying', + /// 'OfflineSecondary' + public ConnectToSourceSqlServerTaskOutputDatabaseLevel(string id = default(string), string name = default(string), double? sizeMb = default(double?), System.Collections.Generic.IList databaseFiles = default(System.Collections.Generic.IList), string compatibilityLevel = default(string), string databaseState = default(string)) + + : base(id) + { + this.Name = name; + this.SizeMb = sizeMb; + this.DatabaseFiles = databaseFiles; + this.CompatibilityLevel = compatibilityLevel; + this.DatabaseState = databaseState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets database name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets size of the file in megabytes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sizeMB")] + public double? SizeMb {get; private set; } + + /// + /// Gets the list of database files + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseFiles")] + public System.Collections.Generic.IList DatabaseFiles {get; private set; } + + /// + /// Gets sQL Server compatibility level of database Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "compatibilityLevel")] + public string CompatibilityLevel {get; private set; } + + /// + /// Gets state of the database Possible values include: 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseState")] + public string DatabaseState {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputLoginLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputLoginLevel.cs new file mode 100644 index 000000000000..5a1475365b18 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputLoginLevel.cs @@ -0,0 +1,95 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Login level output for the task that validates connection to SQL Server and + /// also validates source server requirements + /// + [Newtonsoft.Json.JsonObject("LoginLevelOutput")] + public partial class ConnectToSourceSqlServerTaskOutputLoginLevel : ConnectToSourceSqlServerTaskOutput + { + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskOutputLoginLevel class. + /// + public ConnectToSourceSqlServerTaskOutputLoginLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskOutputLoginLevel class. + /// + + /// Result identifier + /// + + /// Login name. + /// + + /// The type of login. + /// Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', + /// 'Certificate', 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' + + /// The default database for the login. + /// + + /// The state of the login. + /// + + /// Information about eligibility of login for migration. + /// + public ConnectToSourceSqlServerTaskOutputLoginLevel(string id = default(string), string name = default(string), string loginType = default(string), string defaultDatabase = default(string), bool? isEnabled = default(bool?), MigrationEligibilityInfo migrationEligibility = default(MigrationEligibilityInfo)) + + : base(id) + { + this.Name = name; + this.LoginType = loginType; + this.DefaultDatabase = defaultDatabase; + this.IsEnabled = isEnabled; + this.MigrationEligibility = migrationEligibility; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets login name. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets the type of login. Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "loginType")] + public string LoginType {get; private set; } + + /// + /// Gets the default database for the login. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "defaultDatabase")] + public string DefaultDatabase {get; private set; } + + /// + /// Gets the state of the login. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isEnabled")] + public bool? IsEnabled {get; private set; } + + /// + /// Gets information about eligibility of login for migration. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationEligibility")] + public MigrationEligibilityInfo MigrationEligibility {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputTaskLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputTaskLevel.cs new file mode 100644 index 000000000000..4a621457e441 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskOutputTaskLevel.cs @@ -0,0 +1,114 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Task level output for the task that validates connection to SQL Server and + /// also validates source server requirements + /// + [Newtonsoft.Json.JsonObject("TaskLevelOutput")] + public partial class ConnectToSourceSqlServerTaskOutputTaskLevel : ConnectToSourceSqlServerTaskOutput + { + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskOutputTaskLevel class. + /// + public ConnectToSourceSqlServerTaskOutputTaskLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskOutputTaskLevel class. + /// + + /// Result identifier + /// + + /// Source databases as a map from database name to database id + /// + + /// Source logins as a map from login name to login id. + /// + + /// Source agent jobs as a map from agent job name to id. + /// + + /// Mapping from database name to TDE certificate name, if applicable + /// + + /// Source server version + /// + + /// Source server brand version + /// + + /// Validation errors + /// + public ConnectToSourceSqlServerTaskOutputTaskLevel(string id = default(string), System.Collections.Generic.IDictionary databases = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary logins = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary agentJobs = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary databaseTdeCertificateMapping = default(System.Collections.Generic.IDictionary), string sourceServerVersion = default(string), string sourceServerBrandVersion = default(string), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + : base(id) + { + this.Databases = databases; + this.Logins = logins; + this.AgentJobs = agentJobs; + this.DatabaseTdeCertificateMapping = databaseTdeCertificateMapping; + this.SourceServerVersion = sourceServerVersion; + this.SourceServerBrandVersion = sourceServerBrandVersion; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets source databases as a map from database name to database id + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IDictionary Databases {get; private set; } + + /// + /// Gets source logins as a map from login name to login id. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "logins")] + public System.Collections.Generic.IDictionary Logins {get; private set; } + + /// + /// Gets source agent jobs as a map from agent job name to id. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "agentJobs")] + public System.Collections.Generic.IDictionary AgentJobs {get; private set; } + + /// + /// Gets mapping from database name to TDE certificate name, if applicable + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseTdeCertificateMapping")] + public System.Collections.Generic.IDictionary DatabaseTdeCertificateMapping {get; private set; } + + /// + /// Gets source server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerVersion")] + public string SourceServerVersion {get; private set; } + + /// + /// Gets source server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerBrandVersion")] + public string SourceServerBrandVersion {get; private set; } + + /// + /// Gets validation errors + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskProperties.cs new file mode 100644 index 000000000000..c1793a3d8aff --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToSourceSqlServerTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates connection to SQL Server and also + /// validates source server requirements + /// + [Newtonsoft.Json.JsonObject("ConnectToSource.SqlServer")] + public partial class ConnectToSourceSqlServerTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskProperties class. + /// + public ConnectToSourceSqlServerTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToSourceSqlServerTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ConnectToSourceSqlServerTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ConnectToSourceSqlServerTaskInput input = default(ConnectToSourceSqlServerTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ConnectToSourceSqlServerTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForMySqlTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForMySqlTaskInput.cs new file mode 100644 index 000000000000..801074b346c7 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForMySqlTaskInput.cs @@ -0,0 +1,85 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that validates connection to Azure Database for MySQL + /// and target server requirements + /// + public partial class ConnectToTargetAzureDbForMySqlTaskInput + { + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForMySqlTaskInput class. + /// + public ConnectToTargetAzureDbForMySqlTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForMySqlTaskInput class. + /// + + /// Connection information for source MySQL server + /// + + /// Connection information for target Azure Database for MySQL server + /// + public ConnectToTargetAzureDbForMySqlTaskInput(MySqlConnectionInfo sourceConnectionInfo, MySqlConnectionInfo targetConnectionInfo) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for source MySQL server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public MySqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets connection information for target Azure Database for MySQL + /// server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public MySqlConnectionInfo TargetConnectionInfo {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForMySqlTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForMySqlTaskOutput.cs new file mode 100644 index 000000000000..9017dc18260a --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForMySqlTaskOutput.cs @@ -0,0 +1,89 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that validates connection to Azure Database for MySQL + /// and target server requirements + /// + public partial class ConnectToTargetAzureDbForMySqlTaskOutput + { + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForMySqlTaskOutput class. + /// + public ConnectToTargetAzureDbForMySqlTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForMySqlTaskOutput class. + /// + + /// Result identifier + /// + + /// Version of the target server + /// + + /// List of databases on target server + /// + + /// Target server brand version + /// + + /// Validation errors associated with the task + /// + public ConnectToTargetAzureDbForMySqlTaskOutput(string id = default(string), string serverVersion = default(string), System.Collections.Generic.IList databases = default(System.Collections.Generic.IList), string targetServerBrandVersion = default(string), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.Id = id; + this.ServerVersion = serverVersion; + this.Databases = databases; + this.TargetServerBrandVersion = targetServerBrandVersion; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets version of the target server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverVersion")] + public string ServerVersion {get; private set; } + + /// + /// Gets list of databases on target server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IList Databases {get; private set; } + + /// + /// Gets target server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerBrandVersion")] + public string TargetServerBrandVersion {get; private set; } + + /// + /// Gets validation errors associated with the task + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForMySqlTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForMySqlTaskProperties.cs new file mode 100644 index 000000000000..f02f12780fb8 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForMySqlTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates connection to Azure Database for + /// MySQL and target server requirements + /// + [Newtonsoft.Json.JsonObject("ConnectToTarget.AzureDbForMySql")] + public partial class ConnectToTargetAzureDbForMySqlTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForMySqlTaskProperties class. + /// + public ConnectToTargetAzureDbForMySqlTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForMySqlTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ConnectToTargetAzureDbForMySqlTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ConnectToTargetAzureDbForMySqlTaskInput input = default(ConnectToTargetAzureDbForMySqlTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ConnectToTargetAzureDbForMySqlTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForPostgreSqlSyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForPostgreSqlSyncTaskInput.cs new file mode 100644 index 000000000000..75618ac66f9a --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForPostgreSqlSyncTaskInput.cs @@ -0,0 +1,85 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that validates connection to Azure Database for + /// PostgreSQL and target server requirements + /// + public partial class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput + { + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForPostgreSqlSyncTaskInput class. + /// + public ConnectToTargetAzureDbForPostgreSqlSyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForPostgreSqlSyncTaskInput class. + /// + + /// Connection information for source PostgreSQL server + /// + + /// Connection information for target Azure Database for PostgreSQL server + /// + public ConnectToTargetAzureDbForPostgreSqlSyncTaskInput(PostgreSqlConnectionInfo sourceConnectionInfo, PostgreSqlConnectionInfo targetConnectionInfo) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for source PostgreSQL server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public PostgreSqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets connection information for target Azure Database for + /// PostgreSQL server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public PostgreSqlConnectionInfo TargetConnectionInfo {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput.cs new file mode 100644 index 000000000000..de5bd365ae87 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput.cs @@ -0,0 +1,89 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that validates connection to Azure Database for + /// PostgreSQL and target server requirements + /// + public partial class ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput + { + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput class. + /// + public ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput class. + /// + + /// Result identifier + /// + + /// Version of the target server + /// + + /// List of databases on target server + /// + + /// Target server brand version + /// + + /// Validation errors associated with the task + /// + public ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput(string id = default(string), string targetServerVersion = default(string), System.Collections.Generic.IList databases = default(System.Collections.Generic.IList), string targetServerBrandVersion = default(string), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.Id = id; + this.TargetServerVersion = targetServerVersion; + this.Databases = databases; + this.TargetServerBrandVersion = targetServerBrandVersion; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets version of the target server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets list of databases on target server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IList Databases {get; private set; } + + /// + /// Gets target server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerBrandVersion")] + public string TargetServerBrandVersion {get; private set; } + + /// + /// Gets validation errors associated with the task + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.cs new file mode 100644 index 000000000000..fc0c404653a5 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates connection to Azure Database For + /// PostgreSQL server and target server requirements for online migration + /// + [Newtonsoft.Json.JsonObject("ConnectToTarget.AzureDbForPostgreSql.Sync")] + public partial class ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties class. + /// + public ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ConnectToTargetAzureDbForPostgreSqlSyncTaskInput input = default(ConnectToTargetAzureDbForPostgreSqlSyncTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ConnectToTargetAzureDbForPostgreSqlSyncTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlDbTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlDbTaskInput.cs new file mode 100644 index 000000000000..987af4ffd7d4 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlDbTaskInput.cs @@ -0,0 +1,66 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that validates connection to SQL DB and target server + /// requirements + /// + public partial class ConnectToTargetSqlDbTaskInput + { + /// + /// Initializes a new instance of the ConnectToTargetSqlDbTaskInput class. + /// + public ConnectToTargetSqlDbTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlDbTaskInput class. + /// + + /// Connection information for target SQL DB + /// + public ConnectToTargetSqlDbTaskInput(SqlConnectionInfo targetConnectionInfo) + + { + this.TargetConnectionInfo = targetConnectionInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for target SQL DB + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public SqlConnectionInfo TargetConnectionInfo {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlDbTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlDbTaskOutput.cs new file mode 100644 index 000000000000..b612776c83a3 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlDbTaskOutput.cs @@ -0,0 +1,79 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that validates connection to SQL DB and target server + /// requirements + /// + public partial class ConnectToTargetSqlDbTaskOutput + { + /// + /// Initializes a new instance of the ConnectToTargetSqlDbTaskOutput class. + /// + public ConnectToTargetSqlDbTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlDbTaskOutput class. + /// + + /// Result identifier + /// + + /// Source databases as a map from database name to database id + /// + + /// Version of the target server + /// + + /// Target server brand version + /// + public ConnectToTargetSqlDbTaskOutput(string id = default(string), System.Collections.Generic.IDictionary databases = default(System.Collections.Generic.IDictionary), string targetServerVersion = default(string), string targetServerBrandVersion = default(string)) + + { + this.Id = id; + this.Databases = databases; + this.TargetServerVersion = targetServerVersion; + this.TargetServerBrandVersion = targetServerBrandVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets source databases as a map from database name to database id + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IDictionary Databases {get; private set; } + + /// + /// Gets version of the target server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets target server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerBrandVersion")] + public string TargetServerBrandVersion {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlDbTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlDbTaskProperties.cs new file mode 100644 index 000000000000..3e8a290be58c --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlDbTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates connection to SQL DB and target + /// server requirements + /// + [Newtonsoft.Json.JsonObject("ConnectToTarget.SqlDb")] + public partial class ConnectToTargetSqlDbTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToTargetSqlDbTaskProperties class. + /// + public ConnectToTargetSqlDbTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlDbTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ConnectToTargetSqlDbTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ConnectToTargetSqlDbTaskInput input = default(ConnectToTargetSqlDbTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ConnectToTargetSqlDbTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMISyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMISyncTaskInput.cs new file mode 100644 index 000000000000..e426de781270 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMISyncTaskInput.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that validates connection to Azure SQL Database Managed + /// Instance online scenario. + /// + public partial class ConnectToTargetSqlMISyncTaskInput + { + /// + /// Initializes a new instance of the ConnectToTargetSqlMISyncTaskInput class. + /// + public ConnectToTargetSqlMISyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlMISyncTaskInput class. + /// + + /// Connection information for Azure SQL Database Managed Instance + /// + + /// Azure Active Directory Application the DMS instance will use to connect to + /// the target instance of Azure SQL Database Managed Instance and the Azure + /// Storage Account + /// + public ConnectToTargetSqlMISyncTaskInput(MiSqlConnectionInfo targetConnectionInfo, AzureActiveDirectoryApp azureApp) + + { + this.TargetConnectionInfo = targetConnectionInfo; + this.AzureApp = azureApp; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for Azure SQL Database Managed Instance + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public MiSqlConnectionInfo TargetConnectionInfo {get; set; } + + /// + /// Gets or sets azure Active Directory Application the DMS instance will use + /// to connect to the target instance of Azure SQL Database Managed Instance + /// and the Azure Storage Account + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "azureApp")] + public AzureActiveDirectoryApp AzureApp {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.AzureApp == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "AzureApp"); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + if (this.AzureApp != null) + { + this.AzureApp.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMISyncTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMISyncTaskOutput.cs new file mode 100644 index 000000000000..575ce0666e71 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMISyncTaskOutput.cs @@ -0,0 +1,69 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that validates connection to Azure SQL Database Managed + /// Instance. + /// + public partial class ConnectToTargetSqlMISyncTaskOutput + { + /// + /// Initializes a new instance of the ConnectToTargetSqlMISyncTaskOutput class. + /// + public ConnectToTargetSqlMISyncTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlMISyncTaskOutput class. + /// + + /// Target server version + /// + + /// Target server brand version + /// + + /// Validation errors + /// + public ConnectToTargetSqlMISyncTaskOutput(string targetServerVersion = default(string), string targetServerBrandVersion = default(string), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.TargetServerVersion = targetServerVersion; + this.TargetServerBrandVersion = targetServerBrandVersion; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets target server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets target server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerBrandVersion")] + public string TargetServerBrandVersion {get; private set; } + + /// + /// Gets validation errors + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMISyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMISyncTaskProperties.cs new file mode 100644 index 000000000000..3a26ad32ab52 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMISyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates connection to Azure SQL Database + /// Managed Instance + /// + [Newtonsoft.Json.JsonObject("ConnectToTarget.AzureSqlDbMI.Sync.LRS")] + public partial class ConnectToTargetSqlMISyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToTargetSqlMISyncTaskProperties class. + /// + public ConnectToTargetSqlMISyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlMISyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ConnectToTargetSqlMISyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ConnectToTargetSqlMISyncTaskInput input = default(ConnectToTargetSqlMISyncTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ConnectToTargetSqlMISyncTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMITaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMITaskInput.cs new file mode 100644 index 000000000000..e150bc84ffdc --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMITaskInput.cs @@ -0,0 +1,66 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that validates connection to Azure SQL Database Managed + /// Instance. + /// + public partial class ConnectToTargetSqlMITaskInput + { + /// + /// Initializes a new instance of the ConnectToTargetSqlMITaskInput class. + /// + public ConnectToTargetSqlMITaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlMITaskInput class. + /// + + /// Connection information for target SQL Server + /// + public ConnectToTargetSqlMITaskInput(SqlConnectionInfo targetConnectionInfo) + + { + this.TargetConnectionInfo = targetConnectionInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for target SQL Server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public SqlConnectionInfo TargetConnectionInfo {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMITaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMITaskOutput.cs new file mode 100644 index 000000000000..aed1523882a7 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMITaskOutput.cs @@ -0,0 +1,99 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that validates connection to Azure SQL Database Managed + /// Instance. + /// + public partial class ConnectToTargetSqlMITaskOutput + { + /// + /// Initializes a new instance of the ConnectToTargetSqlMITaskOutput class. + /// + public ConnectToTargetSqlMITaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlMITaskOutput class. + /// + + /// Result identifier + /// + + /// Target server version + /// + + /// Target server brand version + /// + + /// List of logins on the target server. + /// + + /// List of agent jobs on the target server. + /// + + /// Validation errors + /// + public ConnectToTargetSqlMITaskOutput(string id = default(string), string targetServerVersion = default(string), string targetServerBrandVersion = default(string), System.Collections.Generic.IList logins = default(System.Collections.Generic.IList), System.Collections.Generic.IList agentJobs = default(System.Collections.Generic.IList), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.Id = id; + this.TargetServerVersion = targetServerVersion; + this.TargetServerBrandVersion = targetServerBrandVersion; + this.Logins = logins; + this.AgentJobs = agentJobs; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets target server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets target server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerBrandVersion")] + public string TargetServerBrandVersion {get; private set; } + + /// + /// Gets list of logins on the target server. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "logins")] + public System.Collections.Generic.IList Logins {get; private set; } + + /// + /// Gets list of agent jobs on the target server. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "agentJobs")] + public System.Collections.Generic.IList AgentJobs {get; private set; } + + /// + /// Gets validation errors + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMITaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMITaskProperties.cs new file mode 100644 index 000000000000..aa310cc08639 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlMITaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates connection to Azure SQL Database + /// Managed Instance + /// + [Newtonsoft.Json.JsonObject("ConnectToTarget.AzureSqlDbMI")] + public partial class ConnectToTargetSqlMITaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToTargetSqlMITaskProperties class. + /// + public ConnectToTargetSqlMITaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlMITaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ConnectToTargetSqlMITaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ConnectToTargetSqlMITaskInput input = default(ConnectToTargetSqlMITaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ConnectToTargetSqlMITaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlSqlDbSyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlSqlDbSyncTaskInput.cs new file mode 100644 index 000000000000..2d46ffe10d4b --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlSqlDbSyncTaskInput.cs @@ -0,0 +1,84 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that validates connection to Azure SQL DB and target + /// server requirements + /// + public partial class ConnectToTargetSqlSqlDbSyncTaskInput + { + /// + /// Initializes a new instance of the ConnectToTargetSqlSqlDbSyncTaskInput class. + /// + public ConnectToTargetSqlSqlDbSyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlSqlDbSyncTaskInput class. + /// + + /// Connection information for source SQL Server + /// + + /// Connection information for target SQL DB + /// + public ConnectToTargetSqlSqlDbSyncTaskInput(SqlConnectionInfo sourceConnectionInfo, SqlConnectionInfo targetConnectionInfo) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for source SQL Server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public SqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets connection information for target SQL DB + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public SqlConnectionInfo TargetConnectionInfo {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlSqlDbSyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlSqlDbSyncTaskProperties.cs new file mode 100644 index 000000000000..d442b551215a --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectToTargetSqlSqlDbSyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates connection to SQL DB and target + /// server requirements for online migration + /// + [Newtonsoft.Json.JsonObject("ConnectToTarget.SqlDb.Sync")] + public partial class ConnectToTargetSqlSqlDbSyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ConnectToTargetSqlSqlDbSyncTaskProperties class. + /// + public ConnectToTargetSqlSqlDbSyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectToTargetSqlSqlDbSyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ConnectToTargetSqlSqlDbSyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ConnectToTargetSqlSqlDbSyncTaskInput input = default(ConnectToTargetSqlSqlDbSyncTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ConnectToTargetSqlSqlDbSyncTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectionInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectionInfo.cs new file mode 100644 index 000000000000..cd1fa1c377d4 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ConnectionInfo.cs @@ -0,0 +1,59 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Defines the connection properties of a server + /// + [Newtonsoft.Json.JsonObject("ConnectionInfo")] + public partial class ConnectionInfo + { + /// + /// Initializes a new instance of the ConnectionInfo class. + /// + public ConnectionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectionInfo class. + /// + + /// User name + /// + + /// Password credential. + /// + public ConnectionInfo(string userName = default(string), string password = default(string)) + + { + this.UserName = userName; + this.Password = password; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets user name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "userName")] + public string UserName {get; set; } + + /// + /// Gets or sets password credential. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "password")] + public string Password {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataIntegrityValidationResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataIntegrityValidationResult.cs new file mode 100644 index 000000000000..c3423d0309a8 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataIntegrityValidationResult.cs @@ -0,0 +1,59 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Results for checksum based Data Integrity validation results + /// + public partial class DataIntegrityValidationResult + { + /// + /// Initializes a new instance of the DataIntegrityValidationResult class. + /// + public DataIntegrityValidationResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataIntegrityValidationResult class. + /// + + /// List of failed table names of source and target pair + /// + + /// List of errors that happened while performing data integrity validation + /// + public DataIntegrityValidationResult(System.Collections.Generic.IDictionary failedObjects = default(System.Collections.Generic.IDictionary), ValidationError validationErrors = default(ValidationError)) + + { + this.FailedObjects = failedObjects; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets list of failed table names of source and target pair + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "failedObjects")] + public System.Collections.Generic.IDictionary FailedObjects {get; set; } + + /// + /// Gets or sets list of errors that happened while performing data integrity + /// validation + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public ValidationError ValidationErrors {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataItemMigrationSummaryResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataItemMigrationSummaryResult.cs new file mode 100644 index 000000000000..e13fd45961d7 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataItemMigrationSummaryResult.cs @@ -0,0 +1,130 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Basic summary of a data item migration + /// + public partial class DataItemMigrationSummaryResult + { + /// + /// Initializes a new instance of the DataItemMigrationSummaryResult class. + /// + public DataItemMigrationSummaryResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataItemMigrationSummaryResult class. + /// + + /// Name of the item + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Current state of migration + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Status message + /// + + /// Number of items + /// + + /// Number of successfully completed items + /// + + /// Wildcard string prefix to use for querying all errors of the item + /// + + /// Wildcard string prefix to use for querying all sub-tem results of the item + /// + public DataItemMigrationSummaryResult(string name = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string state = default(string), string statusMessage = default(string), long? itemsCount = default(long?), long? itemsCompletedCount = default(long?), string errorPrefix = default(string), string resultPrefix = default(string)) + + { + this.Name = name; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.State = state; + this.StatusMessage = statusMessage; + this.ItemsCount = itemsCount; + this.ItemsCompletedCount = itemsCompletedCount; + this.ErrorPrefix = errorPrefix; + this.ResultPrefix = resultPrefix; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the item + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets current state of migration Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets status message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "statusMessage")] + public string StatusMessage {get; private set; } + + /// + /// Gets number of items + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "itemsCount")] + public long? ItemsCount {get; private set; } + + /// + /// Gets number of successfully completed items + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "itemsCompletedCount")] + public long? ItemsCompletedCount {get; private set; } + + /// + /// Gets wildcard string prefix to use for querying all errors of the item + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errorPrefix")] + public string ErrorPrefix {get; private set; } + + /// + /// Gets wildcard string prefix to use for querying all sub-tem results of the + /// item + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "resultPrefix")] + public string ResultPrefix {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationError.cs new file mode 100644 index 000000000000..a5cd13cb01a8 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationError.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Migration Task errors + /// + public partial class DataMigrationError + { + /// + /// Initializes a new instance of the DataMigrationError class. + /// + public DataMigrationError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataMigrationError class. + /// + + /// Error description + /// + + /// Error type + /// Possible values include: 'Default', 'Warning', 'Error' + public DataMigrationError(string message = default(string), string type = default(string)) + + { + this.Message = message; + this.Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets error description + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; private set; } + + /// + /// Gets or sets error type Possible values include: 'Default', 'Warning', 'Error' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + public string Type {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationProjectMetadata.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationProjectMetadata.cs new file mode 100644 index 000000000000..c77d1b06ad4c --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationProjectMetadata.cs @@ -0,0 +1,118 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Common metadata for migration projects + /// + public partial class DataMigrationProjectMetadata + { + /// + /// Initializes a new instance of the DataMigrationProjectMetadata class. + /// + public DataMigrationProjectMetadata() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataMigrationProjectMetadata class. + /// + + /// Source server name + /// + + /// Source server port number + /// + + /// Source username + /// + + /// Target server name + /// + + /// Target username + /// + + /// Target database name + /// + + /// Whether target connection is Windows authentication + /// + + /// List of tables selected for migration + /// + public DataMigrationProjectMetadata(string sourceServerName = default(string), string sourceServerPort = default(string), string sourceUsername = default(string), string targetServerName = default(string), string targetUsername = default(string), string targetDbName = default(string), bool? targetUsingWinAuth = default(bool?), System.Collections.Generic.IList selectedMigrationTables = default(System.Collections.Generic.IList)) + + { + this.SourceServerName = sourceServerName; + this.SourceServerPort = sourceServerPort; + this.SourceUsername = sourceUsername; + this.TargetServerName = targetServerName; + this.TargetUsername = targetUsername; + this.TargetDbName = targetDbName; + this.TargetUsingWinAuth = targetUsingWinAuth; + this.SelectedMigrationTables = selectedMigrationTables; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets source server name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerName")] + public string SourceServerName {get; private set; } + + /// + /// Gets source server port number + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerPort")] + public string SourceServerPort {get; private set; } + + /// + /// Gets source username + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceUsername")] + public string SourceUsername {get; private set; } + + /// + /// Gets target server name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerName")] + public string TargetServerName {get; private set; } + + /// + /// Gets target username + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetUsername")] + public string TargetUsername {get; private set; } + + /// + /// Gets target database name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetDbName")] + public string TargetDbName {get; private set; } + + /// + /// Gets whether target connection is Windows authentication + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetUsingWinAuth")] + public bool? TargetUsingWinAuth {get; private set; } + + /// + /// Gets list of tables selected for migration + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedMigrationTables")] + public System.Collections.Generic.IList SelectedMigrationTables {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationResultCode.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationResultCode.cs new file mode 100644 index 000000000000..da8ed7c931c4 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationResultCode.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.DataMigration.Models +{ + + /// + /// Defines values for DataMigrationResultCode. + /// + + + public static class DataMigrationResultCode + { + public const string Initial = "Initial"; + public const string Completed = "Completed"; + public const string ObjectNotExistsInSource = "ObjectNotExistsInSource"; + public const string ObjectNotExistsInTarget = "ObjectNotExistsInTarget"; + public const string TargetObjectIsInaccessible = "TargetObjectIsInaccessible"; + public const string FatalError = "FatalError"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationService.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationService.cs new file mode 100644 index 000000000000..b5dfec6bfae9 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationService.cs @@ -0,0 +1,136 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// A Database Migration Service resource + /// + [Microsoft.Rest.Serialization.JsonTransformation] + public partial class DataMigrationService : TrackedResource + { + /// + /// Initializes a new instance of the DataMigrationService class. + /// + public DataMigrationService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataMigrationService class. + /// + + /// Resource ID. + /// + + /// Resource name. + /// + + /// Resource type. + /// + + /// Resource tags. + /// + + /// Resource location. + /// + + /// HTTP strong entity tag value. Ignored if submitted + /// + + /// The resource kind. Only 'vm' (the default) is supported. + /// + + /// Service SKU + /// + + /// The resource's provisioning state + /// Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', + /// 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', + /// 'Failed' + + /// The public key of the service, used to encrypt secrets sent to the service + /// + + /// The ID of the Microsoft.Network/virtualNetworks/subnets resource to which + /// the service should be joined + /// + public DataMigrationService(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string etag = default(string), string kind = default(string), ServiceSku sku = default(ServiceSku), string provisioningState = default(string), string publicKey = default(string), string virtualSubnetId = default(string)) + + : base(location, id, name, type, tags) + { + this.Etag = etag; + this.Kind = kind; + this.Sku = sku; + this.ProvisioningState = provisioningState; + this.PublicKey = publicKey; + this.VirtualSubnetId = virtualSubnetId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets hTTP strong entity tag value. Ignored if submitted + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "etag")] + public string Etag {get; set; } + + /// + /// Gets or sets the resource kind. Only 'vm' (the default) is supported. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "kind")] + public string Kind {get; set; } + + /// + /// Gets or sets service SKU + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sku")] + public ServiceSku Sku {get; set; } + + /// + /// Gets the resource's provisioning state Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', 'Failed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState {get; private set; } + + /// + /// Gets or sets the public key of the service, used to encrypt secrets sent to + /// the service + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.publicKey")] + public string PublicKey {get; set; } + + /// + /// Gets or sets the ID of the Microsoft.Network/virtualNetworks/subnets + /// resource to which the service should be joined + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.virtualSubnetId")] + public string VirtualSubnetId {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + + + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationServiceProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationServiceProperties.cs new file mode 100644 index 000000000000..18c647b4c28d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationServiceProperties.cs @@ -0,0 +1,89 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties of the Database Migration Service instance + /// + public partial class DataMigrationServiceProperties + { + /// + /// Initializes a new instance of the DataMigrationServiceProperties class. + /// + public DataMigrationServiceProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataMigrationServiceProperties class. + /// + + /// The resource's provisioning state + /// Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', + /// 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', + /// 'Failed' + + /// The public key of the service, used to encrypt secrets sent to the service + /// + + /// The ID of the Microsoft.Network/virtualNetworks/subnets resource to which + /// the service should be joined + /// + public DataMigrationServiceProperties(string virtualSubnetId, string provisioningState = default(string), string publicKey = default(string)) + + { + this.ProvisioningState = provisioningState; + this.PublicKey = publicKey; + this.VirtualSubnetId = virtualSubnetId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the resource's provisioning state Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', 'Failed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState {get; private set; } + + /// + /// Gets or sets the public key of the service, used to encrypt secrets sent to + /// the service + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "publicKey")] + public string PublicKey {get; set; } + + /// + /// Gets or sets the ID of the Microsoft.Network/virtualNetworks/subnets + /// resource to which the service should be joined + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "virtualSubnetId")] + public string VirtualSubnetId {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.VirtualSubnetId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "VirtualSubnetId"); + } + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationServiceStatusResponse.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationServiceStatusResponse.cs new file mode 100644 index 000000000000..662b5653ac48 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DataMigrationServiceStatusResponse.cs @@ -0,0 +1,82 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Service health status + /// + public partial class DataMigrationServiceStatusResponse + { + /// + /// Initializes a new instance of the DataMigrationServiceStatusResponse class. + /// + public DataMigrationServiceStatusResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataMigrationServiceStatusResponse class. + /// + + /// The DMS instance agent version + /// + + /// The machine-readable status, such as 'Initializing', 'Offline', 'Online', + /// 'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', + /// 'FailedToStart', 'FailedToStop' or 'Failed' + /// + + /// The services virtual machine size, such as 'Standard_D2_v2' + /// + + /// The list of supported task types + /// + public DataMigrationServiceStatusResponse(string agentVersion = default(string), string status = default(string), string vmSize = default(string), System.Collections.Generic.IList supportedTaskTypes = default(System.Collections.Generic.IList)) + + { + this.AgentVersion = agentVersion; + this.Status = status; + this.VMSize = vmSize; + this.SupportedTaskTypes = supportedTaskTypes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the DMS instance agent version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "agentVersion")] + public string AgentVersion {get; set; } + + /// + /// Gets or sets the machine-readable status, such as 'Initializing', + /// 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping', + /// 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + public string Status {get; set; } + + /// + /// Gets or sets the services virtual machine size, such as 'Standard_D2_v2' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "vmSize")] + public string VMSize {get; set; } + + /// + /// Gets or sets the list of supported task types + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "supportedTaskTypes")] + public System.Collections.Generic.IList SupportedTaskTypes {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Database.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Database.cs new file mode 100644 index 000000000000..e7488f9eeb44 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Database.cs @@ -0,0 +1,212 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Information about a single database + /// + public partial class Database + { + /// + /// Initializes a new instance of the Database class. + /// + public Database() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Database class. + /// + + /// Unique identifier for the database + /// + + /// Name of the database + /// + + /// SQL Server compatibility level of database + /// Possible values include: 'CompatLevel80', 'CompatLevel90', + /// 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', + /// 'CompatLevel140' + + /// Collation name of the database + /// + + /// Name of the server + /// + + /// Fully qualified name + /// + + /// Install id of the database + /// + + /// Version of the server + /// + + /// Edition of the server + /// + + /// Product level of the server (RTM, SP, CTP). + /// + + /// Default path of the data files + /// + + /// Default path of the log files + /// + + /// Default path of the backup folder + /// + + /// Number of cores on the server + /// + + /// Number of cores on the server that have VISIBLE ONLINE status + /// + + /// State of the database + /// Possible values include: 'Online', 'Restoring', 'Recovering', + /// 'RecoveryPending', 'Suspect', 'Emergency', 'Offline', 'Copying', + /// 'OfflineSecondary' + + /// The unique Server Id + /// + public Database(string id = default(string), string name = default(string), string compatibilityLevel = default(string), string collation = default(string), string serverName = default(string), string fqdn = default(string), string installId = default(string), string serverVersion = default(string), string serverEdition = default(string), string serverLevel = default(string), string serverDefaultDataPath = default(string), string serverDefaultLogPath = default(string), string serverDefaultBackupPath = default(string), int? serverCoreCount = default(int?), int? serverVisibleOnlineCoreCount = default(int?), string databaseState = default(string), string serverId = default(string)) + + { + this.Id = id; + this.Name = name; + this.CompatibilityLevel = compatibilityLevel; + this.Collation = collation; + this.ServerName = serverName; + this.Fqdn = fqdn; + this.InstallId = installId; + this.ServerVersion = serverVersion; + this.ServerEdition = serverEdition; + this.ServerLevel = serverLevel; + this.ServerDefaultDataPath = serverDefaultDataPath; + this.ServerDefaultLogPath = serverDefaultLogPath; + this.ServerDefaultBackupPath = serverDefaultBackupPath; + this.ServerCoreCount = serverCoreCount; + this.ServerVisibleOnlineCoreCount = serverVisibleOnlineCoreCount; + this.DatabaseState = databaseState; + this.ServerId = serverId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets unique identifier for the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; set; } + + /// + /// Gets or sets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets sQL Server compatibility level of database Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "compatibilityLevel")] + public string CompatibilityLevel {get; set; } + + /// + /// Gets or sets collation name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "collation")] + public string Collation {get; set; } + + /// + /// Gets or sets name of the server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverName")] + public string ServerName {get; set; } + + /// + /// Gets or sets fully qualified name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fqdn")] + public string Fqdn {get; set; } + + /// + /// Gets or sets install id of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "installId")] + public string InstallId {get; set; } + + /// + /// Gets or sets version of the server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverVersion")] + public string ServerVersion {get; set; } + + /// + /// Gets or sets edition of the server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverEdition")] + public string ServerEdition {get; set; } + + /// + /// Gets or sets product level of the server (RTM, SP, CTP). + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverLevel")] + public string ServerLevel {get; set; } + + /// + /// Gets or sets default path of the data files + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverDefaultDataPath")] + public string ServerDefaultDataPath {get; set; } + + /// + /// Gets or sets default path of the log files + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverDefaultLogPath")] + public string ServerDefaultLogPath {get; set; } + + /// + /// Gets or sets default path of the backup folder + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverDefaultBackupPath")] + public string ServerDefaultBackupPath {get; set; } + + /// + /// Gets or sets number of cores on the server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverCoreCount")] + public int? ServerCoreCount {get; set; } + + /// + /// Gets or sets number of cores on the server that have VISIBLE ONLINE status + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverVisibleOnlineCoreCount")] + public int? ServerVisibleOnlineCoreCount {get; set; } + + /// + /// Gets or sets state of the database Possible values include: 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseState")] + public string DatabaseState {get; set; } + + /// + /// Gets or sets the unique Server Id + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverId")] + public string ServerId {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseBackupInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseBackupInfo.cs new file mode 100644 index 000000000000..a49afc01d4f2 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseBackupInfo.cs @@ -0,0 +1,122 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Information about backup files when existing backup mode is used. + /// + public partial class DatabaseBackupInfo + { + /// + /// Initializes a new instance of the DatabaseBackupInfo class. + /// + public DatabaseBackupInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseBackupInfo class. + /// + + /// Database name. + /// + + /// Backup Type. + /// Possible values include: 'Database', 'TransactionLog', 'File', + /// 'DifferentialDatabase', 'DifferentialFile', 'Partial', + /// 'DifferentialPartial' + + /// The list of backup files for the current database. + /// + + /// Position of current database backup in the file. + /// + + /// Database was damaged when backed up, but the backup operation was requested + /// to continue despite errors. + /// + + /// Whether the backup set is compressed + /// + + /// Number of files in the backup set. + /// + + /// Date and time when the backup operation finished. + /// + public DatabaseBackupInfo(string databaseName = default(string), string backupType = default(string), System.Collections.Generic.IList backupFiles = default(System.Collections.Generic.IList), int? position = default(int?), bool? isDamaged = default(bool?), bool? isCompressed = default(bool?), int? familyCount = default(int?), System.DateTimeOffset? backupFinishDate = default(System.DateTimeOffset?)) + + { + this.DatabaseName = databaseName; + this.BackupType = backupType; + this.BackupFiles = backupFiles; + this.Position = position; + this.IsDamaged = isDamaged; + this.IsCompressed = isCompressed; + this.FamilyCount = familyCount; + this.BackupFinishDate = backupFinishDate; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets database name. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets backup Type. Possible values include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', 'DifferentialFile', 'Partial', 'DifferentialPartial' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupType")] + public string BackupType {get; private set; } + + /// + /// Gets the list of backup files for the current database. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupFiles")] + public System.Collections.Generic.IList BackupFiles {get; private set; } + + /// + /// Gets position of current database backup in the file. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "position")] + public int? Position {get; private set; } + + /// + /// Gets database was damaged when backed up, but the backup operation was + /// requested to continue despite errors. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isDamaged")] + public bool? IsDamaged {get; private set; } + + /// + /// Gets whether the backup set is compressed + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isCompressed")] + public bool? IsCompressed {get; private set; } + + /// + /// Gets number of files in the backup set. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "familyCount")] + public int? FamilyCount {get; private set; } + + /// + /// Gets date and time when the backup operation finished. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupFinishDate")] + public System.DateTimeOffset? BackupFinishDate {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseCompatLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseCompatLevel.cs new file mode 100644 index 000000000000..986b9726a395 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseCompatLevel.cs @@ -0,0 +1,24 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for DatabaseCompatLevel. + /// + + + public static class DatabaseCompatLevel + { + public const string CompatLevel80 = "CompatLevel80"; + public const string CompatLevel90 = "CompatLevel90"; + public const string CompatLevel100 = "CompatLevel100"; + public const string CompatLevel110 = "CompatLevel110"; + public const string CompatLevel120 = "CompatLevel120"; + public const string CompatLevel130 = "CompatLevel130"; + public const string CompatLevel140 = "CompatLevel140"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseFileInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseFileInfo.cs new file mode 100644 index 000000000000..1e9a7a668572 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseFileInfo.cs @@ -0,0 +1,109 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database file specific information + /// + public partial class DatabaseFileInfo + { + /// + /// Initializes a new instance of the DatabaseFileInfo class. + /// + public DatabaseFileInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseFileInfo class. + /// + + /// Name of the database + /// + + /// Unique identifier for database file + /// + + /// Logical name of the file + /// + + /// Operating-system full path of the file + /// + + /// Suggested full path of the file for restoring + /// + + /// Database file type + /// Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', + /// 'Fulltext' + + /// Size of the file in megabytes + /// + public DatabaseFileInfo(string databaseName = default(string), string id = default(string), string logicalName = default(string), string physicalFullName = default(string), string restoreFullName = default(string), string fileType = default(string), double? sizeMb = default(double?)) + + { + this.DatabaseName = databaseName; + this.Id = id; + this.LogicalName = logicalName; + this.PhysicalFullName = physicalFullName; + this.RestoreFullName = restoreFullName; + this.FileType = fileType; + this.SizeMb = sizeMb; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; set; } + + /// + /// Gets or sets unique identifier for database file + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; set; } + + /// + /// Gets or sets logical name of the file + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "logicalName")] + public string LogicalName {get; set; } + + /// + /// Gets or sets operating-system full path of the file + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "physicalFullName")] + public string PhysicalFullName {get; set; } + + /// + /// Gets or sets suggested full path of the file for restoring + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "restoreFullName")] + public string RestoreFullName {get; set; } + + /// + /// Gets or sets database file type Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', 'Fulltext' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fileType")] + public string FileType {get; set; } + + /// + /// Gets or sets size of the file in megabytes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sizeMB")] + public double? SizeMb {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseFileInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseFileInput.cs new file mode 100644 index 000000000000..c54b524b1e05 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseFileInput.cs @@ -0,0 +1,89 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database file specific information for input + /// + public partial class DatabaseFileInput + { + /// + /// Initializes a new instance of the DatabaseFileInput class. + /// + public DatabaseFileInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseFileInput class. + /// + + /// Unique identifier for database file + /// + + /// Logical name of the file + /// + + /// Operating-system full path of the file + /// + + /// Suggested full path of the file for restoring + /// + + /// Database file type + /// Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', + /// 'Fulltext' + public DatabaseFileInput(string id = default(string), string logicalName = default(string), string physicalFullName = default(string), string restoreFullName = default(string), string fileType = default(string)) + + { + this.Id = id; + this.LogicalName = logicalName; + this.PhysicalFullName = physicalFullName; + this.RestoreFullName = restoreFullName; + this.FileType = fileType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets unique identifier for database file + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; set; } + + /// + /// Gets or sets logical name of the file + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "logicalName")] + public string LogicalName {get; set; } + + /// + /// Gets or sets operating-system full path of the file + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "physicalFullName")] + public string PhysicalFullName {get; set; } + + /// + /// Gets or sets suggested full path of the file for restoring + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "restoreFullName")] + public string RestoreFullName {get; set; } + + /// + /// Gets or sets database file type Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', 'Fulltext' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fileType")] + public string FileType {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseFileType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseFileType.cs new file mode 100644 index 000000000000..19598efc8023 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseFileType.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.DataMigration.Models +{ + + /// + /// Defines values for DatabaseFileType. + /// + + + public static class DatabaseFileType + { + public const string Rows = "Rows"; + public const string Log = "Log"; + public const string Filestream = "Filestream"; + public const string NotSupported = "NotSupported"; + public const string Fulltext = "Fulltext"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseInfo.cs new file mode 100644 index 000000000000..f545e395521c --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseInfo.cs @@ -0,0 +1,62 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Project Database Details + /// + public partial class DatabaseInfo + { + /// + /// Initializes a new instance of the DatabaseInfo class. + /// + public DatabaseInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseInfo class. + /// + + /// Name of the database + /// + public DatabaseInfo(string sourceDatabaseName) + + { + this.SourceDatabaseName = sourceDatabaseName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceDatabaseName")] + public string SourceDatabaseName {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceDatabaseName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceDatabaseName"); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseMigrationStage.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseMigrationStage.cs new file mode 100644 index 000000000000..85d5f4d85a9c --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseMigrationStage.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.DataMigration.Models +{ + + /// + /// Defines values for DatabaseMigrationStage. + /// + + + public static class DatabaseMigrationStage + { + public const string None = "None"; + public const string Initialize = "Initialize"; + public const string Backup = "Backup"; + public const string FileCopy = "FileCopy"; + public const string Restore = "Restore"; + public const string Completed = "Completed"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseMigrationState.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseMigrationState.cs new file mode 100644 index 000000000000..ca2c44069ee6 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseMigrationState.cs @@ -0,0 +1,27 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for DatabaseMigrationState. + /// + + + public static class DatabaseMigrationState + { + public const string Undefined = "UNDEFINED"; + public const string Initial = "INITIAL"; + public const string FullBackupUploadStart = "FULL_BACKUP_UPLOAD_START"; + public const string LOGShippingStart = "LOG_SHIPPING_START"; + public const string UploadLOGFilesStart = "UPLOAD_LOG_FILES_START"; + public const string CutoverStart = "CUTOVER_START"; + public const string PostCutoverComplete = "POST_CUTOVER_COMPLETE"; + public const string Completed = "COMPLETED"; + public const string Cancelled = "CANCELLED"; + public const string Failed = "FAILED"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseObjectName.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseObjectName.cs new file mode 100644 index 000000000000..e3d5a82057f5 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseObjectName.cs @@ -0,0 +1,79 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// A representation of the name of an object in a database + /// + public partial class DatabaseObjectName + { + /// + /// Initializes a new instance of the DatabaseObjectName class. + /// + public DatabaseObjectName() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseObjectName class. + /// + + /// The unescaped name of the database containing the object + /// + + /// The unescaped name of the object + /// + + /// The unescaped name of the schema containing the object + /// + + /// Type of the object in the database + /// Possible values include: 'StoredProcedures', 'Table', 'User', 'View', + /// 'Function' + public DatabaseObjectName(string databaseName = default(string), string objectName = default(string), string schemaName = default(string), string objectType = default(string)) + + { + this.DatabaseName = databaseName; + this.ObjectName = objectName; + this.SchemaName = schemaName; + this.ObjectType = objectType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the unescaped name of the database containing the object + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets the unescaped name of the object + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "objectName")] + public string ObjectName {get; private set; } + + /// + /// Gets the unescaped name of the schema containing the object + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "schemaName")] + public string SchemaName {get; private set; } + + /// + /// Gets or sets type of the object in the database Possible values include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "objectType")] + public string ObjectType {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseState.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseState.cs new file mode 100644 index 000000000000..987ba2c5e41e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseState.cs @@ -0,0 +1,26 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for DatabaseState. + /// + + + public static class DatabaseState + { + public const string Online = "Online"; + public const string Restoring = "Restoring"; + public const string Recovering = "Recovering"; + public const string RecoveryPending = "RecoveryPending"; + public const string Suspect = "Suspect"; + public const string Emergency = "Emergency"; + public const string Offline = "Offline"; + public const string Copying = "Copying"; + public const string OfflineSecondary = "OfflineSecondary"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseSummaryResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseSummaryResult.cs new file mode 100644 index 000000000000..471909e8c126 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseSummaryResult.cs @@ -0,0 +1,77 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Summary of database results in the migration + /// + public partial class DatabaseSummaryResult : DataItemMigrationSummaryResult + { + /// + /// Initializes a new instance of the DatabaseSummaryResult class. + /// + public DatabaseSummaryResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseSummaryResult class. + /// + + /// Name of the item + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Current state of migration + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Status message + /// + + /// Number of items + /// + + /// Number of successfully completed items + /// + + /// Wildcard string prefix to use for querying all errors of the item + /// + + /// Wildcard string prefix to use for querying all sub-tem results of the item + /// + + /// Size of the database in megabytes + /// + public DatabaseSummaryResult(string name = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string state = default(string), string statusMessage = default(string), long? itemsCount = default(long?), long? itemsCompletedCount = default(long?), string errorPrefix = default(string), string resultPrefix = default(string), double? sizeMb = default(double?)) + + : base(name, startedOn, endedOn, state, statusMessage, itemsCount, itemsCompletedCount, errorPrefix, resultPrefix) + { + this.SizeMb = sizeMb; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets size of the database in megabytes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sizeMB")] + public double? SizeMb {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseTable.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseTable.cs new file mode 100644 index 000000000000..32ca0614c52a --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/DatabaseTable.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Table properties + /// + public partial class DatabaseTable + { + /// + /// Initializes a new instance of the DatabaseTable class. + /// + public DatabaseTable() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseTable class. + /// + + /// Indicates whether table is empty or not + /// + + /// Schema-qualified name of the table + /// + public DatabaseTable(bool? hasRows = default(bool?), string name = default(string)) + + { + this.HasRows = hasRows; + this.Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets indicates whether table is empty or not + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "hasRows")] + public bool? HasRows {get; private set; } + + /// + /// Gets schema-qualified name of the table + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ErrorType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ErrorType.cs new file mode 100644 index 000000000000..92c8bf60ea79 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ErrorType.cs @@ -0,0 +1,20 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for ErrorType. + /// + + + public static class ErrorType + { + public const string Default = "Default"; + public const string Warning = "Warning"; + public const string Error = "Error"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ExecutionStatistics.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ExecutionStatistics.cs new file mode 100644 index 000000000000..217f3e92dd24 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ExecutionStatistics.cs @@ -0,0 +1,99 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Description about the errors happen while performing migration validation + /// + public partial class ExecutionStatistics + { + /// + /// Initializes a new instance of the ExecutionStatistics class. + /// + public ExecutionStatistics() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExecutionStatistics class. + /// + + /// No. of query executions + /// + + /// CPU Time in millisecond(s) for the query execution + /// + + /// Time taken in millisecond(s) for executing the query + /// + + /// Dictionary of sql query execution wait types and the respective statistics + /// + + /// Indicates whether the query resulted in an error + /// + + /// List of sql Errors + /// + public ExecutionStatistics(long? executionCount = default(long?), double? cpuTimeMS = default(double?), double? elapsedTimeMS = default(double?), System.Collections.Generic.IDictionary waitStats = default(System.Collections.Generic.IDictionary), bool? hasErrors = default(bool?), System.Collections.Generic.IList sqlErrors = default(System.Collections.Generic.IList)) + + { + this.ExecutionCount = executionCount; + this.CpuTimeMS = cpuTimeMS; + this.ElapsedTimeMS = elapsedTimeMS; + this.WaitStats = waitStats; + this.HasErrors = hasErrors; + this.SqlErrors = sqlErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets no. of query executions + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "executionCount")] + public long? ExecutionCount {get; set; } + + /// + /// Gets or sets cPU Time in millisecond(s) for the query execution + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cpuTimeMs")] + public double? CpuTimeMS {get; set; } + + /// + /// Gets or sets time taken in millisecond(s) for executing the query + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "elapsedTimeMs")] + public double? ElapsedTimeMS {get; set; } + + /// + /// Gets or sets dictionary of sql query execution wait types and the + /// respective statistics + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "waitStats")] + public System.Collections.Generic.IDictionary WaitStats {get; set; } + + /// + /// Gets or sets indicates whether the query resulted in an error + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "hasErrors")] + public bool? HasErrors {get; set; } + + /// + /// Gets or sets list of sql Errors + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sqlErrors")] + public System.Collections.Generic.IList SqlErrors {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/FileShare.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/FileShare.cs new file mode 100644 index 000000000000..cc043b5d7aaa --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/FileShare.cs @@ -0,0 +1,84 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// File share information with Path, Username, and Password. + /// + public partial class FileShare + { + /// + /// Initializes a new instance of the FileShare class. + /// + public FileShare() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FileShare class. + /// + + /// User name credential to connect to the share location + /// + + /// Password credential used to connect to the share location. + /// + + /// The folder path for this share. + /// + public FileShare(string path, string userName = default(string), string password = default(string)) + + { + this.UserName = userName; + this.Password = password; + this.Path = path; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets user name credential to connect to the share location + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "userName")] + public string UserName {get; set; } + + /// + /// Gets or sets password credential used to connect to the share location. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "password")] + public string Password {get; set; } + + /// + /// Gets or sets the folder path for this share. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "path")] + public string Path {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Path == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Path"); + } + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/FileStorageInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/FileStorageInfo.cs new file mode 100644 index 000000000000..97d7155156a5 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/FileStorageInfo.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// File storage information. + /// + public partial class FileStorageInfo + { + /// + /// Initializes a new instance of the FileStorageInfo class. + /// + public FileStorageInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FileStorageInfo class. + /// + + /// A URI that can be used to access the file content. + /// + + /// Dictionary of <string> + /// + public FileStorageInfo(string uri = default(string), System.Collections.Generic.IDictionary headers = default(System.Collections.Generic.IDictionary)) + + { + this.Uri = uri; + this.Headers = headers; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets a URI that can be used to access the file content. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "uri")] + public string Uri {get; set; } + + /// + /// Gets or sets dictionary of <string> + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "headers")] + public System.Collections.Generic.IDictionary Headers {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetProjectDetailsNonSqlTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetProjectDetailsNonSqlTaskInput.cs new file mode 100644 index 000000000000..ebb0ff162105 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetProjectDetailsNonSqlTaskInput.cs @@ -0,0 +1,77 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that reads configuration from project artifacts + /// + public partial class GetProjectDetailsNonSqlTaskInput + { + /// + /// Initializes a new instance of the GetProjectDetailsNonSqlTaskInput class. + /// + public GetProjectDetailsNonSqlTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GetProjectDetailsNonSqlTaskInput class. + /// + + /// Name of the migration project + /// + + /// A URL that points to the location to access project artifacts + /// + public GetProjectDetailsNonSqlTaskInput(string projectName, string projectLocation) + + { + this.ProjectName = projectName; + this.ProjectLocation = projectLocation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the migration project + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "projectName")] + public string ProjectName {get; set; } + + /// + /// Gets or sets a URL that points to the location to access project artifacts + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "projectLocation")] + public string ProjectLocation {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.ProjectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ProjectName"); + } + if (this.ProjectLocation == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ProjectLocation"); + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetTdeCertificatesSqlTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetTdeCertificatesSqlTaskInput.cs new file mode 100644 index 000000000000..4022e1e9a4dd --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetTdeCertificatesSqlTaskInput.cs @@ -0,0 +1,111 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that gets TDE certificates in Base64 encoded format. + /// + public partial class GetTdeCertificatesSqlTaskInput + { + /// + /// Initializes a new instance of the GetTdeCertificatesSqlTaskInput class. + /// + public GetTdeCertificatesSqlTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GetTdeCertificatesSqlTaskInput class. + /// + + /// Connection information for SQL Server + /// + + /// Backup file share information for file share to be used for temporarily + /// storing files. + /// + + /// List containing certificate names and corresponding password to use for + /// encrypting the exported certificate. + /// + public GetTdeCertificatesSqlTaskInput(SqlConnectionInfo connectionInfo, FileShare backupFileShare, System.Collections.Generic.IList selectedCertificates) + + { + this.ConnectionInfo = connectionInfo; + this.BackupFileShare = backupFileShare; + this.SelectedCertificates = selectedCertificates; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for SQL Server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "connectionInfo")] + public SqlConnectionInfo ConnectionInfo {get; set; } + + /// + /// Gets or sets backup file share information for file share to be used for + /// temporarily storing files. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupFileShare")] + public FileShare BackupFileShare {get; set; } + + /// + /// Gets or sets list containing certificate names and corresponding password + /// to use for encrypting the exported certificate. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedCertificates")] + public System.Collections.Generic.IList SelectedCertificates {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.ConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ConnectionInfo"); + } + if (this.BackupFileShare == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "BackupFileShare"); + } + if (this.SelectedCertificates == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedCertificates"); + } + if (this.ConnectionInfo != null) + { + this.ConnectionInfo.Validate(); + } + if (this.BackupFileShare != null) + { + this.BackupFileShare.Validate(); + } + if (this.SelectedCertificates != null) + { + foreach (var element in this.SelectedCertificates) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetTdeCertificatesSqlTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetTdeCertificatesSqlTaskOutput.cs new file mode 100644 index 000000000000..e6bc2d79d6e8 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetTdeCertificatesSqlTaskOutput.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output of the task that gets TDE certificates in Base64 encoded format. + /// + public partial class GetTdeCertificatesSqlTaskOutput + { + /// + /// Initializes a new instance of the GetTdeCertificatesSqlTaskOutput class. + /// + public GetTdeCertificatesSqlTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GetTdeCertificatesSqlTaskOutput class. + /// + + /// Mapping from certificate name to base 64 encoded format. + /// + + /// Validation errors + /// + public GetTdeCertificatesSqlTaskOutput(System.Collections.Generic.IDictionary> base64EncodedCertificates = default(System.Collections.Generic.IDictionary>), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.Base64EncodedCertificates = base64EncodedCertificates; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets mapping from certificate name to base 64 encoded format. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "base64EncodedCertificates")] + public System.Collections.Generic.IDictionary> Base64EncodedCertificates {get; private set; } + + /// + /// Gets validation errors + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetTdeCertificatesSqlTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetTdeCertificatesSqlTaskProperties.cs new file mode 100644 index 000000000000..197f2d825a9d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetTdeCertificatesSqlTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that gets TDE certificates in Base64 encoded + /// format. + /// + [Newtonsoft.Json.JsonObject("GetTDECertificates.Sql")] + public partial class GetTdeCertificatesSqlTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the GetTdeCertificatesSqlTaskProperties class. + /// + public GetTdeCertificatesSqlTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GetTdeCertificatesSqlTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public GetTdeCertificatesSqlTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), GetTdeCertificatesSqlTaskInput input = default(GetTdeCertificatesSqlTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public GetTdeCertificatesSqlTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlSyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlSyncTaskInput.cs new file mode 100644 index 000000000000..65858eb9372d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlSyncTaskInput.cs @@ -0,0 +1,114 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that collects user tables for the given list of + /// databases + /// + public partial class GetUserTablesSqlSyncTaskInput + { + /// + /// Initializes a new instance of the GetUserTablesSqlSyncTaskInput class. + /// + public GetUserTablesSqlSyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GetUserTablesSqlSyncTaskInput class. + /// + + /// Connection information for SQL Server + /// + + /// Connection information for SQL DB + /// + + /// List of source database names to collect tables for + /// + + /// List of target database names to collect tables for + /// + public GetUserTablesSqlSyncTaskInput(SqlConnectionInfo sourceConnectionInfo, SqlConnectionInfo targetConnectionInfo, System.Collections.Generic.IList selectedSourceDatabases, System.Collections.Generic.IList selectedTargetDatabases) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + this.SelectedSourceDatabases = selectedSourceDatabases; + this.SelectedTargetDatabases = selectedTargetDatabases; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for SQL Server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public SqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets connection information for SQL DB + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public SqlConnectionInfo TargetConnectionInfo {get; set; } + + /// + /// Gets or sets list of source database names to collect tables for + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedSourceDatabases")] + public System.Collections.Generic.IList SelectedSourceDatabases {get; set; } + + /// + /// Gets or sets list of target database names to collect tables for + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedTargetDatabases")] + public System.Collections.Generic.IList SelectedTargetDatabases {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.SelectedSourceDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedSourceDatabases"); + } + if (this.SelectedTargetDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedTargetDatabases"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlSyncTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlSyncTaskOutput.cs new file mode 100644 index 000000000000..767a5dc98834 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlSyncTaskOutput.cs @@ -0,0 +1,79 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output of the task that collects user tables for the given list of + /// databases + /// + public partial class GetUserTablesSqlSyncTaskOutput + { + /// + /// Initializes a new instance of the GetUserTablesSqlSyncTaskOutput class. + /// + public GetUserTablesSqlSyncTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GetUserTablesSqlSyncTaskOutput class. + /// + + /// Mapping from database name to list of source tables + /// + + /// Mapping from database name to list of target tables + /// + + /// Mapping from database name to list of validation errors + /// + + /// Validation errors + /// + public GetUserTablesSqlSyncTaskOutput(System.Collections.Generic.IDictionary> databasesToSourceTables = default(System.Collections.Generic.IDictionary>), System.Collections.Generic.IDictionary> databasesToTargetTables = default(System.Collections.Generic.IDictionary>), System.Collections.Generic.IDictionary> tableValidationErrors = default(System.Collections.Generic.IDictionary>), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.DatabasesToSourceTables = databasesToSourceTables; + this.DatabasesToTargetTables = databasesToTargetTables; + this.TableValidationErrors = tableValidationErrors; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets mapping from database name to list of source tables + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databasesToSourceTables")] + public System.Collections.Generic.IDictionary> DatabasesToSourceTables {get; private set; } + + /// + /// Gets mapping from database name to list of target tables + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databasesToTargetTables")] + public System.Collections.Generic.IDictionary> DatabasesToTargetTables {get; private set; } + + /// + /// Gets mapping from database name to list of validation errors + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tableValidationErrors")] + public System.Collections.Generic.IDictionary> TableValidationErrors {get; private set; } + + /// + /// Gets validation errors + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlSyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlSyncTaskProperties.cs new file mode 100644 index 000000000000..ca15e5d15c98 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlSyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that collects user tables for the given list of + /// databases + /// + [Newtonsoft.Json.JsonObject("GetUserTables.AzureSqlDb.Sync")] + public partial class GetUserTablesSqlSyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the GetUserTablesSqlSyncTaskProperties class. + /// + public GetUserTablesSqlSyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GetUserTablesSqlSyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public GetUserTablesSqlSyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), GetUserTablesSqlSyncTaskInput input = default(GetUserTablesSqlSyncTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public GetUserTablesSqlSyncTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlTaskInput.cs new file mode 100644 index 000000000000..75bc06e06c75 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlTaskInput.cs @@ -0,0 +1,81 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that collects user tables for the given list of + /// databases + /// + public partial class GetUserTablesSqlTaskInput + { + /// + /// Initializes a new instance of the GetUserTablesSqlTaskInput class. + /// + public GetUserTablesSqlTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GetUserTablesSqlTaskInput class. + /// + + /// Connection information for SQL Server + /// + + /// List of database names to collect tables for + /// + public GetUserTablesSqlTaskInput(SqlConnectionInfo connectionInfo, System.Collections.Generic.IList selectedDatabases) + + { + this.ConnectionInfo = connectionInfo; + this.SelectedDatabases = selectedDatabases; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for SQL Server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "connectionInfo")] + public SqlConnectionInfo ConnectionInfo {get; set; } + + /// + /// Gets or sets list of database names to collect tables for + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedDatabases")] + public System.Collections.Generic.IList SelectedDatabases {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.ConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ConnectionInfo"); + } + if (this.SelectedDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedDatabases"); + } + if (this.ConnectionInfo != null) + { + this.ConnectionInfo.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlTaskOutput.cs new file mode 100644 index 000000000000..dfc5f08bcc7f --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlTaskOutput.cs @@ -0,0 +1,69 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output of the task that collects user tables for the given list of + /// databases + /// + public partial class GetUserTablesSqlTaskOutput + { + /// + /// Initializes a new instance of the GetUserTablesSqlTaskOutput class. + /// + public GetUserTablesSqlTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GetUserTablesSqlTaskOutput class. + /// + + /// Result identifier + /// + + /// Mapping from database name to list of tables + /// + + /// Validation errors + /// + public GetUserTablesSqlTaskOutput(string id = default(string), System.Collections.Generic.IDictionary> databasesToTables = default(System.Collections.Generic.IDictionary>), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.Id = id; + this.DatabasesToTables = databasesToTables; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets mapping from database name to list of tables + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databasesToTables")] + public System.Collections.Generic.IDictionary> DatabasesToTables {get; private set; } + + /// + /// Gets validation errors + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlTaskProperties.cs new file mode 100644 index 000000000000..a3e5d593a428 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/GetUserTablesSqlTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that collects user tables for the given list of + /// databases + /// + [Newtonsoft.Json.JsonObject("GetUserTables.Sql")] + public partial class GetUserTablesSqlTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the GetUserTablesSqlTaskProperties class. + /// + public GetUserTablesSqlTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GetUserTablesSqlTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public GetUserTablesSqlTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), GetUserTablesSqlTaskInput input = default(GetUserTablesSqlTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public GetUserTablesSqlTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/LoginMigrationStage.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/LoginMigrationStage.cs new file mode 100644 index 000000000000..25e50969e05d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/LoginMigrationStage.cs @@ -0,0 +1,26 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for LoginMigrationStage. + /// + + + public static class LoginMigrationStage + { + public const string None = "None"; + public const string Initialize = "Initialize"; + public const string LoginMigration = "LoginMigration"; + public const string EstablishUserMapping = "EstablishUserMapping"; + public const string AssignRoleMembership = "AssignRoleMembership"; + public const string AssignRoleOwnership = "AssignRoleOwnership"; + public const string EstablishServerPermissions = "EstablishServerPermissions"; + public const string EstablishObjectPermissions = "EstablishObjectPermissions"; + public const string Completed = "Completed"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/LoginType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/LoginType.cs new file mode 100644 index 000000000000..a50a51122160 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/LoginType.cs @@ -0,0 +1,24 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for LoginType. + /// + + + public static class LoginType + { + public const string WindowsUser = "WindowsUser"; + public const string WindowsGroup = "WindowsGroup"; + public const string SqlLogin = "SqlLogin"; + public const string Certificate = "Certificate"; + public const string AsymmetricKey = "AsymmetricKey"; + public const string ExternalUser = "ExternalUser"; + public const string ExternalGroup = "ExternalGroup"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MiSqlConnectionInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MiSqlConnectionInfo.cs new file mode 100644 index 000000000000..3e1fac84f29c --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MiSqlConnectionInfo.cs @@ -0,0 +1,71 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties required to create a connection to Azure SQL database Managed + /// instance + /// + [Newtonsoft.Json.JsonObject("MiSqlConnectionInfo")] + public partial class MiSqlConnectionInfo : ConnectionInfo + { + /// + /// Initializes a new instance of the MiSqlConnectionInfo class. + /// + public MiSqlConnectionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MiSqlConnectionInfo class. + /// + + /// User name + /// + + /// Password credential. + /// + + /// Resource id for Azure SQL database Managed instance + /// + public MiSqlConnectionInfo(string managedInstanceResourceId, string userName = default(string), string password = default(string)) + + : base(userName, password) + { + this.ManagedInstanceResourceId = managedInstanceResourceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets resource id for Azure SQL database Managed instance + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "managedInstanceResourceId")] + public string ManagedInstanceResourceId {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.ManagedInstanceResourceId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ManagedInstanceResourceId"); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMISyncCompleteCommandInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMISyncCompleteCommandInput.cs new file mode 100644 index 000000000000..fad61e69be83 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMISyncCompleteCommandInput.cs @@ -0,0 +1,63 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for command that completes online migration for an Azure SQL Database + /// Managed Instance. + /// + public partial class MigrateMISyncCompleteCommandInput + { + /// + /// Initializes a new instance of the MigrateMISyncCompleteCommandInput class. + /// + public MigrateMISyncCompleteCommandInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMISyncCompleteCommandInput class. + /// + + /// Name of managed instance database + /// + public MigrateMISyncCompleteCommandInput(string sourceDatabaseName) + + { + this.SourceDatabaseName = sourceDatabaseName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of managed instance database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceDatabaseName")] + public string SourceDatabaseName {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceDatabaseName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceDatabaseName"); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMISyncCompleteCommandOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMISyncCompleteCommandOutput.cs new file mode 100644 index 000000000000..b53990f10f7d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMISyncCompleteCommandOutput.cs @@ -0,0 +1,49 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for command that completes online migration for an Azure SQL + /// Database Managed Instance. + /// + public partial class MigrateMISyncCompleteCommandOutput + { + /// + /// Initializes a new instance of the MigrateMISyncCompleteCommandOutput class. + /// + public MigrateMISyncCompleteCommandOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMISyncCompleteCommandOutput class. + /// + + /// List of errors that happened during the command execution + /// + public MigrateMISyncCompleteCommandOutput(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList)) + + { + this.Errors = errors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets list of errors that happened during the command execution + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errors")] + public System.Collections.Generic.IList Errors {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMISyncCompleteCommandProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMISyncCompleteCommandProperties.cs new file mode 100644 index 000000000000..b73984d19ca3 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMISyncCompleteCommandProperties.cs @@ -0,0 +1,82 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the command that completes online migration for an Azure SQL + /// Database Managed Instance. + /// + [Newtonsoft.Json.JsonObject("Migrate.SqlServer.AzureDbSqlMi.Complete")] + public partial class MigrateMISyncCompleteCommandProperties : CommandProperties + { + /// + /// Initializes a new instance of the MigrateMISyncCompleteCommandProperties class. + /// + public MigrateMISyncCompleteCommandProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMISyncCompleteCommandProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the command. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + /// 'Failed' + + /// Command input + /// + + /// Command output. This is ignored if submitted. + /// + public MigrateMISyncCompleteCommandProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), MigrateMISyncCompleteCommandInput input = default(MigrateMISyncCompleteCommandInput), MigrateMISyncCompleteCommandOutput output = default(MigrateMISyncCompleteCommandOutput)) + + : base(errors, state) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets command input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MigrateMISyncCompleteCommandInput Input {get; set; } + + /// + /// Gets command output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public MigrateMISyncCompleteCommandOutput Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMongoDbTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMongoDbTaskProperties.cs new file mode 100644 index 000000000000..c21b6b17da04 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMongoDbTaskProperties.cs @@ -0,0 +1,96 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that migrates data between MongoDB data sources + /// + [Newtonsoft.Json.JsonObject("Migrate.MongoDb")] + public partial class MigrateMongoDbTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the MigrateMongoDbTaskProperties class. + /// + public MigrateMongoDbTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMongoDbTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Describes how a MongoDB data migration should be performed + /// + + /// + /// + public MigrateMongoDbTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), MongoDbMigrationSettings input = default(MongoDbMigrationSettings), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets describes how a MongoDB data migration should be performed + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MongoDbMigrationSettings Input {get; set; } + + /// + /// Gets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + if (this.Output != null) + { + foreach (var element in this.Output) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.cs new file mode 100644 index 000000000000..3b1f8b555009 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.cs @@ -0,0 +1,91 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database specific information for MySQL to Azure Database for MySQL + /// migration task inputs + /// + public partial class MigrateMySqlAzureDbForMySqlSyncDatabaseInput + { + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncDatabaseInput class. + /// + public MigrateMySqlAzureDbForMySqlSyncDatabaseInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncDatabaseInput class. + /// + + /// Name of the database + /// + + /// Name of target database. Note: Target database will be truncated before + /// starting migration. + /// + + /// Migration settings which tune the migration behavior + /// + + /// Source settings to tune source endpoint migration behavior + /// + + /// Target settings to tune target endpoint migration behavior + /// + public MigrateMySqlAzureDbForMySqlSyncDatabaseInput(string name = default(string), string targetDatabaseName = default(string), System.Collections.Generic.IDictionary migrationSetting = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary sourceSetting = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary targetSetting = default(System.Collections.Generic.IDictionary)) + + { + this.Name = name; + this.TargetDatabaseName = targetDatabaseName; + this.MigrationSetting = migrationSetting; + this.SourceSetting = sourceSetting; + this.TargetSetting = targetSetting; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets name of target database. Note: Target database will be + /// truncated before starting migration. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetDatabaseName")] + public string TargetDatabaseName {get; set; } + + /// + /// Gets or sets migration settings which tune the migration behavior + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationSetting")] + public System.Collections.Generic.IDictionary MigrationSetting {get; set; } + + /// + /// Gets or sets source settings to tune source endpoint migration behavior + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceSetting")] + public System.Collections.Generic.IDictionary SourceSetting {get; set; } + + /// + /// Gets or sets target settings to tune target endpoint migration behavior + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetSetting")] + public System.Collections.Generic.IDictionary TargetSetting {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskInput.cs new file mode 100644 index 000000000000..2a1d100672fc --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskInput.cs @@ -0,0 +1,99 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that migrates MySQL databases to Azure Database for + /// MySQL for online migrations + /// + public partial class MigrateMySqlAzureDbForMySqlSyncTaskInput + { + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskInput class. + /// + public MigrateMySqlAzureDbForMySqlSyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskInput class. + /// + + /// Connection information for source MySQL + /// + + /// Connection information for target Azure Database for MySQL + /// + + /// Databases to migrate + /// + public MigrateMySqlAzureDbForMySqlSyncTaskInput(MySqlConnectionInfo sourceConnectionInfo, MySqlConnectionInfo targetConnectionInfo, System.Collections.Generic.IList selectedDatabases) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + this.SelectedDatabases = selectedDatabases; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets connection information for source MySQL + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public MySqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets connection information for target Azure Database for MySQL + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public MySqlConnectionInfo TargetConnectionInfo {get; set; } + + /// + /// Gets or sets databases to migrate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedDatabases")] + public System.Collections.Generic.IList SelectedDatabases {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.SelectedDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedDatabases"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutput.cs new file mode 100644 index 000000000000..bf724ca361fd --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutput.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that migrates MySQL databases to Azure Database for + /// MySQL for online migrations + /// + [Newtonsoft.Json.JsonObject("MigrateMySqlAzureDbForMySqlSyncTaskOutput")] + public partial class MigrateMySqlAzureDbForMySqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutput class. + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutput class. + /// + + /// Result identifier + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutput(string id = default(string)) + + { + this.Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError.cs new file mode 100644 index 000000000000..6563faafbcac --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError.cs @@ -0,0 +1,60 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("DatabaseLevelErrorOutput")] + public partial class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError : MigrateMySqlAzureDbForMySqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError class. + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError class. + /// + + /// Result identifier + /// + + /// Error message + /// + + /// List of error events. + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError(string id = default(string), string errorMessage = default(string), System.Collections.Generic.IList events = default(System.Collections.Generic.IList)) + + : base(id) + { + this.ErrorMessage = errorMessage; + this.Events = events; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets error message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage {get; set; } + + /// + /// Gets or sets list of error events. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "events")] + public System.Collections.Generic.IList Events {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.cs new file mode 100644 index 000000000000..31364f3c2b13 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.cs @@ -0,0 +1,192 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("DatabaseLevelOutput")] + public partial class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel : MigrateMySqlAzureDbForMySqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel class. + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel class. + /// + + /// Result identifier + /// + + /// Name of the database + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Migration state that this database is in + /// Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', + /// 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', + /// 'CANCELLING', 'CANCELLED', 'FAILED' + + /// Number of incoming changes + /// + + /// Number of applied changes + /// + + /// Number of cdc inserts + /// + + /// Number of cdc deletes + /// + + /// Number of cdc updates + /// + + /// Number of tables completed in full load + /// + + /// Number of tables loading in full load + /// + + /// Number of tables queued in full load + /// + + /// Number of tables errored in full load + /// + + /// Indicates if initial load (full load) has been completed + /// + + /// CDC apply latency + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel(string id = default(string), string databaseName = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string migrationState = default(string), long? incomingChanges = default(long?), long? appliedChanges = default(long?), long? cdcInsertCounter = default(long?), long? cdcDeleteCounter = default(long?), long? cdcUpdateCounter = default(long?), long? fullLoadCompletedTables = default(long?), long? fullLoadLoadingTables = default(long?), long? fullLoadQueuedTables = default(long?), long? fullLoadErroredTables = default(long?), bool? initializationCompleted = default(bool?), long? latency = default(long?)) + + : base(id) + { + this.DatabaseName = databaseName; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.MigrationState = migrationState; + this.IncomingChanges = incomingChanges; + this.AppliedChanges = appliedChanges; + this.CdcInsertCounter = cdcInsertCounter; + this.CdcDeleteCounter = cdcDeleteCounter; + this.CdcUpdateCounter = cdcUpdateCounter; + this.FullLoadCompletedTables = fullLoadCompletedTables; + this.FullLoadLoadingTables = fullLoadLoadingTables; + this.FullLoadQueuedTables = fullLoadQueuedTables; + this.FullLoadErroredTables = fullLoadErroredTables; + this.InitializationCompleted = initializationCompleted; + this.Latency = latency; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets migration state that this database is in Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationState")] + public string MigrationState {get; private set; } + + /// + /// Gets number of incoming changes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "incomingChanges")] + public long? IncomingChanges {get; private set; } + + /// + /// Gets number of applied changes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "appliedChanges")] + public long? AppliedChanges {get; private set; } + + /// + /// Gets number of cdc inserts + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcInsertCounter")] + public long? CdcInsertCounter {get; private set; } + + /// + /// Gets number of cdc deletes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcDeleteCounter")] + public long? CdcDeleteCounter {get; private set; } + + /// + /// Gets number of cdc updates + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcUpdateCounter")] + public long? CdcUpdateCounter {get; private set; } + + /// + /// Gets number of tables completed in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadCompletedTables")] + public long? FullLoadCompletedTables {get; private set; } + + /// + /// Gets number of tables loading in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadLoadingTables")] + public long? FullLoadLoadingTables {get; private set; } + + /// + /// Gets number of tables queued in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadQueuedTables")] + public long? FullLoadQueuedTables {get; private set; } + + /// + /// Gets number of tables errored in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadErroredTables")] + public long? FullLoadErroredTables {get; private set; } + + /// + /// Gets indicates if initial load (full load) has been completed + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "initializationCompleted")] + public bool? InitializationCompleted {get; private set; } + + /// + /// Gets cDC apply latency + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "latency")] + public long? Latency {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputError.cs new file mode 100644 index 000000000000..57dcbbf3678d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputError.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("ErrorOutput")] + public partial class MigrateMySqlAzureDbForMySqlSyncTaskOutputError : MigrateMySqlAzureDbForMySqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutputError class. + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutputError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutputError class. + /// + + /// Result identifier + /// + + /// Migration error + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutputError(string id = default(string), ReportableException error = default(ReportableException)) + + : base(id) + { + this.Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration error + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "error")] + public ReportableException Error {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel.cs new file mode 100644 index 000000000000..6d47e13aacde --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel.cs @@ -0,0 +1,100 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("MigrationLevelOutput")] + public partial class MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel : MigrateMySqlAzureDbForMySqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel class. + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel class. + /// + + /// Result identifier + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Source server version + /// + + /// Source server name + /// + + /// Target server version + /// + + /// Target server name + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel(string id = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = default(string), string sourceServer = default(string), string targetServerVersion = default(string), string targetServer = default(string)) + + : base(id) + { + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.SourceServerVersion = sourceServerVersion; + this.SourceServer = sourceServer; + this.TargetServerVersion = targetServerVersion; + this.TargetServer = targetServer; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets source server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerVersion")] + public string SourceServerVersion {get; private set; } + + /// + /// Gets source server name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServer")] + public string SourceServer {get; private set; } + + /// + /// Gets target server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets target server name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServer")] + public string TargetServer {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel.cs new file mode 100644 index 000000000000..e8d09e6e5c67 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel.cs @@ -0,0 +1,171 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("TableLevelOutput")] + public partial class MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel : MigrateMySqlAzureDbForMySqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel class. + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel class. + /// + + /// Result identifier + /// + + /// Name of the table + /// + + /// Name of the database + /// + + /// Number of applied inserts + /// + + /// Number of applied updates + /// + + /// Number of applied deletes + /// + + /// Estimate to finish full load + /// + + /// Full load start time + /// + + /// Full load end time + /// + + /// Number of rows applied in full load + /// + + /// Current state of the table migration + /// Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', + /// 'CANCELED', 'ERROR', 'FAILED' + + /// Total number of applied changes + /// + + /// Number of data errors occurred + /// + + /// Last modified time on target + /// + public MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel(string id = default(string), string tableName = default(string), string databaseName = default(string), string cdcInsertCounter = default(string), string cdcUpdateCounter = default(string), string cdcDeleteCounter = default(string), System.DateTimeOffset? fullLoadEstFinishTime = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadStartedOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadEndedOn = default(System.DateTimeOffset?), long? fullLoadTotalRows = default(long?), string state = default(string), long? totalChangesApplied = default(long?), long? dataErrorsCounter = default(long?), System.DateTimeOffset? lastModifiedTime = default(System.DateTimeOffset?)) + + : base(id) + { + this.TableName = tableName; + this.DatabaseName = databaseName; + this.CdcInsertCounter = cdcInsertCounter; + this.CdcUpdateCounter = cdcUpdateCounter; + this.CdcDeleteCounter = cdcDeleteCounter; + this.FullLoadEstFinishTime = fullLoadEstFinishTime; + this.FullLoadStartedOn = fullLoadStartedOn; + this.FullLoadEndedOn = fullLoadEndedOn; + this.FullLoadTotalRows = fullLoadTotalRows; + this.State = state; + this.TotalChangesApplied = totalChangesApplied; + this.DataErrorsCounter = dataErrorsCounter; + this.LastModifiedTime = lastModifiedTime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the table + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tableName")] + public string TableName {get; private set; } + + /// + /// Gets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets number of applied inserts + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcInsertCounter")] + public string CdcInsertCounter {get; private set; } + + /// + /// Gets number of applied updates + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcUpdateCounter")] + public string CdcUpdateCounter {get; private set; } + + /// + /// Gets number of applied deletes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcDeleteCounter")] + public string CdcDeleteCounter {get; private set; } + + /// + /// Gets estimate to finish full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadEstFinishTime")] + public System.DateTimeOffset? FullLoadEstFinishTime {get; private set; } + + /// + /// Gets full load start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadStartedOn")] + public System.DateTimeOffset? FullLoadStartedOn {get; private set; } + + /// + /// Gets full load end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadEndedOn")] + public System.DateTimeOffset? FullLoadEndedOn {get; private set; } + + /// + /// Gets number of rows applied in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadTotalRows")] + public long? FullLoadTotalRows {get; private set; } + + /// + /// Gets current state of the table migration Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets total number of applied changes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "totalChangesApplied")] + public long? TotalChangesApplied {get; private set; } + + /// + /// Gets number of data errors occurred + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "dataErrorsCounter")] + public long? DataErrorsCounter {get; private set; } + + /// + /// Gets last modified time on target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lastModifiedTime")] + public System.DateTimeOffset? LastModifiedTime {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskProperties.cs new file mode 100644 index 000000000000..1d2cdcb56d4d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that migrates MySQL databases to Azure Database for + /// MySQL for online migrations + /// + [Newtonsoft.Json.JsonObject("Migrate.MySql.AzureDbForMySql.Sync")] + public partial class MigrateMySqlAzureDbForMySqlSyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskProperties class. + /// + public MigrateMySqlAzureDbForMySqlSyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateMySqlAzureDbForMySqlSyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public MigrateMySqlAzureDbForMySqlSyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), MigrateMySqlAzureDbForMySqlSyncTaskInput input = default(MigrateMySqlAzureDbForMySqlSyncTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MigrateMySqlAzureDbForMySqlSyncTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.cs new file mode 100644 index 000000000000..c2b34f3798fa --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.cs @@ -0,0 +1,91 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database specific information for PostgreSQL to Azure Database for + /// PostgreSQL migration task inputs + /// + public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput + { + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput class. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput class. + /// + + /// Name of the database + /// + + /// Name of target database. Note: Target database will be truncated before + /// starting migration. + /// + + /// Migration settings which tune the migration behavior + /// + + /// Source settings to tune source endpoint migration behavior + /// + + /// Target settings to tune target endpoint migration behavior + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(string name = default(string), string targetDatabaseName = default(string), System.Collections.Generic.IDictionary migrationSetting = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary sourceSetting = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary targetSetting = default(System.Collections.Generic.IDictionary)) + + { + this.Name = name; + this.TargetDatabaseName = targetDatabaseName; + this.MigrationSetting = migrationSetting; + this.SourceSetting = sourceSetting; + this.TargetSetting = targetSetting; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets name of target database. Note: Target database will be + /// truncated before starting migration. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetDatabaseName")] + public string TargetDatabaseName {get; set; } + + /// + /// Gets or sets migration settings which tune the migration behavior + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationSetting")] + public System.Collections.Generic.IDictionary MigrationSetting {get; set; } + + /// + /// Gets or sets source settings to tune source endpoint migration behavior + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceSetting")] + public System.Collections.Generic.IDictionary SourceSetting {get; set; } + + /// + /// Gets or sets target settings to tune target endpoint migration behavior + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetSetting")] + public System.Collections.Generic.IDictionary TargetSetting {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput.cs new file mode 100644 index 000000000000..31b9ca560389 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput.cs @@ -0,0 +1,100 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that migrates PostgreSQL databases to Azure Database for + /// PostgreSQL for online migrations + /// + public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput + { + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput class. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput class. + /// + + /// Databases to migrate + /// + + /// Connection information for target Azure Database for PostgreSQL + /// + + /// Connection information for source PostgreSQL + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(System.Collections.Generic.IList selectedDatabases, PostgreSqlConnectionInfo targetConnectionInfo, PostgreSqlConnectionInfo sourceConnectionInfo) + + { + this.SelectedDatabases = selectedDatabases; + this.TargetConnectionInfo = targetConnectionInfo; + this.SourceConnectionInfo = sourceConnectionInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets databases to migrate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedDatabases")] + public System.Collections.Generic.IList SelectedDatabases {get; set; } + + /// + /// Gets or sets connection information for target Azure Database for + /// PostgreSQL + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public PostgreSqlConnectionInfo TargetConnectionInfo {get; set; } + + /// + /// Gets or sets connection information for source PostgreSQL + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public PostgreSqlConnectionInfo SourceConnectionInfo {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SelectedDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedDatabases"); + } + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.cs new file mode 100644 index 000000000000..db25bb1023ab --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that migrates PostgreSQL databases to Azure Database + /// for PostgreSQL for online migrations + /// + [Newtonsoft.Json.JsonObject("MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput")] + public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput class. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput class. + /// + + /// Result identifier + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(string id = default(string)) + + { + this.Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError.cs new file mode 100644 index 000000000000..f2a767dd7a6d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError.cs @@ -0,0 +1,60 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("DatabaseLevelErrorOutput")] + public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError class. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError class. + /// + + /// Result identifier + /// + + /// Error message + /// + + /// List of error events. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError(string id = default(string), string errorMessage = default(string), System.Collections.Generic.IList events = default(System.Collections.Generic.IList)) + + : base(id) + { + this.ErrorMessage = errorMessage; + this.Events = events; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets error message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage {get; set; } + + /// + /// Gets or sets list of error events. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "events")] + public System.Collections.Generic.IList Events {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.cs new file mode 100644 index 000000000000..036224d6d714 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.cs @@ -0,0 +1,192 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("DatabaseLevelOutput")] + public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel class. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel class. + /// + + /// Result identifier + /// + + /// Name of the database + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Migration state that this database is in + /// Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', + /// 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', + /// 'CANCELLING', 'CANCELLED', 'FAILED' + + /// Number of incoming changes + /// + + /// Number of applied changes + /// + + /// Number of cdc inserts + /// + + /// Number of cdc deletes + /// + + /// Number of cdc updates + /// + + /// Number of tables completed in full load + /// + + /// Number of tables loading in full load + /// + + /// Number of tables queued in full load + /// + + /// Number of tables errored in full load + /// + + /// Indicates if initial load (full load) has been completed + /// + + /// CDC apply latency + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel(string id = default(string), string databaseName = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string migrationState = default(string), long? incomingChanges = default(long?), long? appliedChanges = default(long?), long? cdcInsertCounter = default(long?), long? cdcDeleteCounter = default(long?), long? cdcUpdateCounter = default(long?), long? fullLoadCompletedTables = default(long?), long? fullLoadLoadingTables = default(long?), long? fullLoadQueuedTables = default(long?), long? fullLoadErroredTables = default(long?), bool? initializationCompleted = default(bool?), long? latency = default(long?)) + + : base(id) + { + this.DatabaseName = databaseName; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.MigrationState = migrationState; + this.IncomingChanges = incomingChanges; + this.AppliedChanges = appliedChanges; + this.CdcInsertCounter = cdcInsertCounter; + this.CdcDeleteCounter = cdcDeleteCounter; + this.CdcUpdateCounter = cdcUpdateCounter; + this.FullLoadCompletedTables = fullLoadCompletedTables; + this.FullLoadLoadingTables = fullLoadLoadingTables; + this.FullLoadQueuedTables = fullLoadQueuedTables; + this.FullLoadErroredTables = fullLoadErroredTables; + this.InitializationCompleted = initializationCompleted; + this.Latency = latency; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets migration state that this database is in Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationState")] + public string MigrationState {get; private set; } + + /// + /// Gets number of incoming changes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "incomingChanges")] + public long? IncomingChanges {get; private set; } + + /// + /// Gets number of applied changes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "appliedChanges")] + public long? AppliedChanges {get; private set; } + + /// + /// Gets number of cdc inserts + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcInsertCounter")] + public long? CdcInsertCounter {get; private set; } + + /// + /// Gets number of cdc deletes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcDeleteCounter")] + public long? CdcDeleteCounter {get; private set; } + + /// + /// Gets number of cdc updates + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcUpdateCounter")] + public long? CdcUpdateCounter {get; private set; } + + /// + /// Gets number of tables completed in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadCompletedTables")] + public long? FullLoadCompletedTables {get; private set; } + + /// + /// Gets number of tables loading in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadLoadingTables")] + public long? FullLoadLoadingTables {get; private set; } + + /// + /// Gets number of tables queued in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadQueuedTables")] + public long? FullLoadQueuedTables {get; private set; } + + /// + /// Gets number of tables errored in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadErroredTables")] + public long? FullLoadErroredTables {get; private set; } + + /// + /// Gets indicates if initial load (full load) has been completed + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "initializationCompleted")] + public bool? InitializationCompleted {get; private set; } + + /// + /// Gets cDC apply latency + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "latency")] + public long? Latency {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError.cs new file mode 100644 index 000000000000..782099130add --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("ErrorOutput")] + public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError class. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError class. + /// + + /// Result identifier + /// + + /// Migration error + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError(string id = default(string), ReportableException error = default(ReportableException)) + + : base(id) + { + this.Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration error + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "error")] + public ReportableException Error {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.cs new file mode 100644 index 000000000000..4830a828b9d0 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.cs @@ -0,0 +1,100 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("MigrationLevelOutput")] + public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel class. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel class. + /// + + /// Result identifier + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Source server version + /// + + /// Source server name + /// + + /// Target server version + /// + + /// Target server name + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel(string id = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = default(string), string sourceServer = default(string), string targetServerVersion = default(string), string targetServer = default(string)) + + : base(id) + { + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.SourceServerVersion = sourceServerVersion; + this.SourceServer = sourceServer; + this.TargetServerVersion = targetServerVersion; + this.TargetServer = targetServer; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets source server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerVersion")] + public string SourceServerVersion {get; private set; } + + /// + /// Gets source server name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServer")] + public string SourceServer {get; private set; } + + /// + /// Gets target server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets target server name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServer")] + public string TargetServer {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel.cs new file mode 100644 index 000000000000..1a5e98154e7a --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel.cs @@ -0,0 +1,171 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("TableLevelOutput")] + public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput + { + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel class. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel class. + /// + + /// Result identifier + /// + + /// Name of the table + /// + + /// Name of the database + /// + + /// Number of applied inserts + /// + + /// Number of applied updates + /// + + /// Number of applied deletes + /// + + /// Estimate to finish full load + /// + + /// Full load start time + /// + + /// Full load end time + /// + + /// Number of rows applied in full load + /// + + /// Current state of the table migration + /// Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', + /// 'CANCELED', 'ERROR', 'FAILED' + + /// Total number of applied changes + /// + + /// Number of data errors occurred + /// + + /// Last modified time on target + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel(string id = default(string), string tableName = default(string), string databaseName = default(string), long? cdcInsertCounter = default(long?), long? cdcUpdateCounter = default(long?), long? cdcDeleteCounter = default(long?), System.DateTimeOffset? fullLoadEstFinishTime = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadStartedOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadEndedOn = default(System.DateTimeOffset?), long? fullLoadTotalRows = default(long?), string state = default(string), long? totalChangesApplied = default(long?), long? dataErrorsCounter = default(long?), System.DateTimeOffset? lastModifiedTime = default(System.DateTimeOffset?)) + + : base(id) + { + this.TableName = tableName; + this.DatabaseName = databaseName; + this.CdcInsertCounter = cdcInsertCounter; + this.CdcUpdateCounter = cdcUpdateCounter; + this.CdcDeleteCounter = cdcDeleteCounter; + this.FullLoadEstFinishTime = fullLoadEstFinishTime; + this.FullLoadStartedOn = fullLoadStartedOn; + this.FullLoadEndedOn = fullLoadEndedOn; + this.FullLoadTotalRows = fullLoadTotalRows; + this.State = state; + this.TotalChangesApplied = totalChangesApplied; + this.DataErrorsCounter = dataErrorsCounter; + this.LastModifiedTime = lastModifiedTime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the table + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tableName")] + public string TableName {get; private set; } + + /// + /// Gets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets number of applied inserts + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcInsertCounter")] + public long? CdcInsertCounter {get; private set; } + + /// + /// Gets number of applied updates + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcUpdateCounter")] + public long? CdcUpdateCounter {get; private set; } + + /// + /// Gets number of applied deletes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcDeleteCounter")] + public long? CdcDeleteCounter {get; private set; } + + /// + /// Gets estimate to finish full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadEstFinishTime")] + public System.DateTimeOffset? FullLoadEstFinishTime {get; private set; } + + /// + /// Gets full load start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadStartedOn")] + public System.DateTimeOffset? FullLoadStartedOn {get; private set; } + + /// + /// Gets full load end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadEndedOn")] + public System.DateTimeOffset? FullLoadEndedOn {get; private set; } + + /// + /// Gets number of rows applied in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadTotalRows")] + public long? FullLoadTotalRows {get; private set; } + + /// + /// Gets current state of the table migration Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets total number of applied changes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "totalChangesApplied")] + public long? TotalChangesApplied {get; private set; } + + /// + /// Gets number of data errors occurred + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "dataErrorsCounter")] + public long? DataErrorsCounter {get; private set; } + + /// + /// Gets last modified time on target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lastModifiedTime")] + public System.DateTimeOffset? LastModifiedTime {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.cs new file mode 100644 index 000000000000..bc7c034136db --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that migrates PostgreSQL databases to Azure + /// Database for PostgreSQL for online migrations + /// + [Newtonsoft.Json.JsonObject("Migrate.PostgreSql.AzureDbForPostgreSql.Sync")] + public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties class. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput input = default(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbDatabaseInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbDatabaseInput.cs new file mode 100644 index 000000000000..9aa68666aaff --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbDatabaseInput.cs @@ -0,0 +1,68 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database input for migrate schema Sql Server to Azure SQL Server scenario + /// + public partial class MigrateSchemaSqlServerSqlDbDatabaseInput + { + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbDatabaseInput class. + /// + public MigrateSchemaSqlServerSqlDbDatabaseInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbDatabaseInput class. + /// + + /// Name of source database + /// + + /// Name of target database + /// + + /// Database schema migration settings + /// + public MigrateSchemaSqlServerSqlDbDatabaseInput(string name = default(string), string targetDatabaseName = default(string), SchemaMigrationSetting schemaSetting = default(SchemaMigrationSetting)) + + { + this.Name = name; + this.TargetDatabaseName = targetDatabaseName; + this.SchemaSetting = schemaSetting; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of source database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets name of target database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetDatabaseName")] + public string TargetDatabaseName {get; set; } + + /// + /// Gets or sets database schema migration settings + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "schemaSetting")] + public SchemaMigrationSetting SchemaSetting {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskInput.cs new file mode 100644 index 000000000000..32c4ebfa4c23 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskInput.cs @@ -0,0 +1,71 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for task that migrates Schema for SQL Server databases to Azure SQL + /// databases + /// + public partial class MigrateSchemaSqlServerSqlDbTaskInput : SqlMigrationTaskInput + { + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskInput class. + /// + public MigrateSchemaSqlServerSqlDbTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskInput class. + /// + + /// Information for connecting to source + /// + + /// Information for connecting to target + /// + + /// Databases to migrate + /// + public MigrateSchemaSqlServerSqlDbTaskInput(SqlConnectionInfo sourceConnectionInfo, SqlConnectionInfo targetConnectionInfo, System.Collections.Generic.IList selectedDatabases) + + : base(sourceConnectionInfo, targetConnectionInfo) + { + this.SelectedDatabases = selectedDatabases; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets databases to migrate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedDatabases")] + public System.Collections.Generic.IList SelectedDatabases {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (this.SelectedDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedDatabases"); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutput.cs new file mode 100644 index 000000000000..bab9290f4213 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutput.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that migrates Schema for SQL Server databases to Azure + /// SQL databases + /// + [Newtonsoft.Json.JsonObject("MigrateSchemaSqlServerSqlDbTaskOutput")] + public partial class MigrateSchemaSqlServerSqlDbTaskOutput + { + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskOutput class. + /// + public MigrateSchemaSqlServerSqlDbTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskOutput class. + /// + + /// Result identifier + /// + public MigrateSchemaSqlServerSqlDbTaskOutput(string id = default(string)) + + { + this.Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel.cs new file mode 100644 index 000000000000..acc27a0db550 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel.cs @@ -0,0 +1,145 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("DatabaseLevelOutput")] + public partial class MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel : MigrateSchemaSqlServerSqlDbTaskOutput + { + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel class. + /// + public MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel class. + /// + + /// Result identifier + /// + + /// The name of the database + /// + + /// State of the schema migration for this database + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Schema migration stage for this database + /// Possible values include: 'NotStarted', 'ValidatingInputs', + /// 'CollectingObjects', 'DownloadingScript', 'GeneratingScript', + /// 'UploadingScript', 'DeployingSchema', 'Completed', 'CompletedWithWarnings', + /// 'Failed' + + /// Migration start time + /// + + /// Migration end time + /// + + /// Prefix string to use for querying errors for this database + /// + + /// Prefix string to use for querying schema errors for this database + /// + + /// Number of successful operations for this database + /// + + /// Number of failed operations for this database + /// + + /// Identifier for the file resource containing the schema of this database + /// + public MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel(string id = default(string), string databaseName = default(string), string state = default(string), string stage = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string databaseErrorResultPrefix = default(string), string schemaErrorResultPrefix = default(string), long? numberOfSuccessfulOperations = default(long?), long? numberOfFailedOperations = default(long?), string fileId = default(string)) + + : base(id) + { + this.DatabaseName = databaseName; + this.State = state; + this.Stage = stage; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.DatabaseErrorResultPrefix = databaseErrorResultPrefix; + this.SchemaErrorResultPrefix = schemaErrorResultPrefix; + this.NumberOfSuccessfulOperations = numberOfSuccessfulOperations; + this.NumberOfFailedOperations = numberOfFailedOperations; + this.FileId = fileId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets state of the schema migration for this database Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets schema migration stage for this database Possible values include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', 'DownloadingScript', 'GeneratingScript', 'UploadingScript', 'DeployingSchema', 'Completed', 'CompletedWithWarnings', 'Failed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "stage")] + public string Stage {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets prefix string to use for querying errors for this database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseErrorResultPrefix")] + public string DatabaseErrorResultPrefix {get; private set; } + + /// + /// Gets prefix string to use for querying schema errors for this database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "schemaErrorResultPrefix")] + public string SchemaErrorResultPrefix {get; private set; } + + /// + /// Gets number of successful operations for this database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "numberOfSuccessfulOperations")] + public long? NumberOfSuccessfulOperations {get; private set; } + + /// + /// Gets number of failed operations for this database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "numberOfFailedOperations")] + public long? NumberOfFailedOperations {get; private set; } + + /// + /// Gets identifier for the file resource containing the schema of this + /// database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fileId")] + public string FileId {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutputError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutputError.cs new file mode 100644 index 000000000000..4523b3cfa83e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutputError.cs @@ -0,0 +1,60 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("SchemaErrorOutput")] + public partial class MigrateSchemaSqlServerSqlDbTaskOutputError : MigrateSchemaSqlServerSqlDbTaskOutput + { + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskOutputError class. + /// + public MigrateSchemaSqlServerSqlDbTaskOutputError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskOutputError class. + /// + + /// Result identifier + /// + + /// Schema command which failed + /// + + /// Reason of failure + /// + public MigrateSchemaSqlServerSqlDbTaskOutputError(string id = default(string), string commandText = default(string), string errorText = default(string)) + + : base(id) + { + this.CommandText = commandText; + this.ErrorText = errorText; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets schema command which failed + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "commandText")] + public string CommandText {get; private set; } + + /// + /// Gets reason of failure + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errorText")] + public string ErrorText {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel.cs new file mode 100644 index 000000000000..c6ecbb561aaf --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel.cs @@ -0,0 +1,111 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("MigrationLevelOutput")] + public partial class MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel : MigrateSchemaSqlServerSqlDbTaskOutput + { + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel class. + /// + public MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel class. + /// + + /// Result identifier + /// + + /// Overall state of the schema migration + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Migration start time + /// + + /// Migration end time + /// + + /// Source server version + /// + + /// Source server brand version + /// + + /// Target server version + /// + + /// Target server brand version + /// + public MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel(string id = default(string), string state = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = default(string), string sourceServerBrandVersion = default(string), string targetServerVersion = default(string), string targetServerBrandVersion = default(string)) + + : base(id) + { + this.State = state; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.SourceServerVersion = sourceServerVersion; + this.SourceServerBrandVersion = sourceServerBrandVersion; + this.TargetServerVersion = targetServerVersion; + this.TargetServerBrandVersion = targetServerBrandVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets overall state of the schema migration Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets source server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerVersion")] + public string SourceServerVersion {get; private set; } + + /// + /// Gets source server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerBrandVersion")] + public string SourceServerBrandVersion {get; private set; } + + /// + /// Gets target server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets target server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerBrandVersion")] + public string TargetServerBrandVersion {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskProperties.cs new file mode 100644 index 000000000000..c991490bacaf --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlServerSqlDbTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for task that migrates Schema for SQL Server databases to Azure + /// SQL databases + /// + [Newtonsoft.Json.JsonObject("MigrateSchemaSqlServerSqlDb")] + public partial class MigrateSchemaSqlServerSqlDbTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskProperties class. + /// + public MigrateSchemaSqlServerSqlDbTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSchemaSqlServerSqlDbTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public MigrateSchemaSqlServerSqlDbTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), MigrateSchemaSqlServerSqlDbTaskInput input = default(MigrateSchemaSqlServerSqlDbTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MigrateSchemaSqlServerSqlDbTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlTaskOutputError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlTaskOutputError.cs new file mode 100644 index 000000000000..261c8caa36fd --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSchemaSqlTaskOutputError.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("ErrorOutput")] + public partial class MigrateSchemaSqlTaskOutputError : MigrateSchemaSqlServerSqlDbTaskOutput + { + /// + /// Initializes a new instance of the MigrateSchemaSqlTaskOutputError class. + /// + public MigrateSchemaSqlTaskOutputError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSchemaSqlTaskOutputError class. + /// + + /// Result identifier + /// + + /// Migration error + /// + public MigrateSchemaSqlTaskOutputError(string id = default(string), ReportableException error = default(ReportableException)) + + : base(id) + { + this.Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration error + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "error")] + public ReportableException Error {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerDatabaseInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerDatabaseInput.cs new file mode 100644 index 000000000000..c2655011db24 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerDatabaseInput.cs @@ -0,0 +1,78 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database specific information for SQL to SQL migration task inputs + /// + public partial class MigrateSqlServerDatabaseInput + { + /// + /// Initializes a new instance of the MigrateSqlServerDatabaseInput class. + /// + public MigrateSqlServerDatabaseInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerDatabaseInput class. + /// + + /// Name of the database + /// + + /// Name of the database at destination + /// + + /// The backup and restore folder + /// + + /// The list of database files + /// + public MigrateSqlServerDatabaseInput(string name = default(string), string restoreDatabaseName = default(string), string backupAndRestoreFolder = default(string), System.Collections.Generic.IList databaseFiles = default(System.Collections.Generic.IList)) + + { + this.Name = name; + this.RestoreDatabaseName = restoreDatabaseName; + this.BackupAndRestoreFolder = backupAndRestoreFolder; + this.DatabaseFiles = databaseFiles; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets name of the database at destination + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "restoreDatabaseName")] + public string RestoreDatabaseName {get; set; } + + /// + /// Gets or sets the backup and restore folder + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupAndRestoreFolder")] + public string BackupAndRestoreFolder {get; set; } + + /// + /// Gets or sets the list of database files + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseFiles")] + public System.Collections.Generic.IList DatabaseFiles {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbDatabaseInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbDatabaseInput.cs new file mode 100644 index 000000000000..885f2cd7b727 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbDatabaseInput.cs @@ -0,0 +1,80 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database specific information for SQL to Azure SQL DB migration task inputs + /// + public partial class MigrateSqlServerSqlDbDatabaseInput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbDatabaseInput class. + /// + public MigrateSqlServerSqlDbDatabaseInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbDatabaseInput class. + /// + + /// Name of the database + /// + + /// Name of target database. Note: Target database will be truncated before + /// starting migration. + /// + + /// Whether to set database read only before migration + /// + + /// Mapping of source to target tables + /// + public MigrateSqlServerSqlDbDatabaseInput(string name = default(string), string targetDatabaseName = default(string), bool? makeSourceDbReadOnly = default(bool?), System.Collections.Generic.IDictionary tableMap = default(System.Collections.Generic.IDictionary)) + + { + this.Name = name; + this.TargetDatabaseName = targetDatabaseName; + this.MakeSourceDbReadOnly = makeSourceDbReadOnly; + this.TableMap = tableMap; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets name of target database. Note: Target database will be + /// truncated before starting migration. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetDatabaseName")] + public string TargetDatabaseName {get; set; } + + /// + /// Gets or sets whether to set database read only before migration + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "makeSourceDbReadOnly")] + public bool? MakeSourceDbReadOnly {get; set; } + + /// + /// Gets or sets mapping of source to target tables + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tableMap")] + public System.Collections.Generic.IDictionary TableMap {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncDatabaseInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncDatabaseInput.cs new file mode 100644 index 000000000000..f29af6d3b016 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncDatabaseInput.cs @@ -0,0 +1,119 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database specific information for SQL to Azure SQL DB sync migration task + /// inputs + /// + public partial class MigrateSqlServerSqlDbSyncDatabaseInput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncDatabaseInput class. + /// + public MigrateSqlServerSqlDbSyncDatabaseInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncDatabaseInput class. + /// + + /// Unique identifier for database + /// + + /// Name of database + /// + + /// Target database name + /// + + /// Schema name to be migrated + /// + + /// Mapping of source to target tables + /// + + /// Migration settings which tune the migration behavior + /// + + /// Source settings to tune source endpoint migration behavior + /// + + /// Target settings to tune target endpoint migration behavior + /// + public MigrateSqlServerSqlDbSyncDatabaseInput(string id = default(string), string name = default(string), string targetDatabaseName = default(string), string schemaName = default(string), System.Collections.Generic.IDictionary tableMap = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary migrationSetting = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary sourceSetting = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary targetSetting = default(System.Collections.Generic.IDictionary)) + + { + this.Id = id; + this.Name = name; + this.TargetDatabaseName = targetDatabaseName; + this.SchemaName = schemaName; + this.TableMap = tableMap; + this.MigrationSetting = migrationSetting; + this.SourceSetting = sourceSetting; + this.TargetSetting = targetSetting; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets unique identifier for database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; set; } + + /// + /// Gets or sets name of database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets target database name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetDatabaseName")] + public string TargetDatabaseName {get; set; } + + /// + /// Gets or sets schema name to be migrated + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "schemaName")] + public string SchemaName {get; set; } + + /// + /// Gets or sets mapping of source to target tables + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tableMap")] + public System.Collections.Generic.IDictionary TableMap {get; set; } + + /// + /// Gets or sets migration settings which tune the migration behavior + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationSetting")] + public System.Collections.Generic.IDictionary MigrationSetting {get; set; } + + /// + /// Gets or sets source settings to tune source endpoint migration behavior + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceSetting")] + public System.Collections.Generic.IDictionary SourceSetting {get; set; } + + /// + /// Gets or sets target settings to tune target endpoint migration behavior + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetSetting")] + public System.Collections.Generic.IDictionary TargetSetting {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskInput.cs new file mode 100644 index 000000000000..36b494e514fe --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskInput.cs @@ -0,0 +1,82 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that migrates on-prem SQL Server databases to Azure SQL + /// Database for online migrations + /// + public partial class MigrateSqlServerSqlDbSyncTaskInput : SqlMigrationTaskInput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskInput class. + /// + public MigrateSqlServerSqlDbSyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskInput class. + /// + + /// Information for connecting to source + /// + + /// Information for connecting to target + /// + + /// Databases to migrate + /// + + /// Validation options + /// + public MigrateSqlServerSqlDbSyncTaskInput(SqlConnectionInfo sourceConnectionInfo, SqlConnectionInfo targetConnectionInfo, System.Collections.Generic.IList selectedDatabases, MigrationValidationOptions validationOptions = default(MigrationValidationOptions)) + + : base(sourceConnectionInfo, targetConnectionInfo) + { + this.SelectedDatabases = selectedDatabases; + this.ValidationOptions = validationOptions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets databases to migrate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedDatabases")] + public System.Collections.Generic.IList SelectedDatabases {get; set; } + + /// + /// Gets or sets validation options + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationOptions")] + public MigrationValidationOptions ValidationOptions {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (this.SelectedDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedDatabases"); + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutput.cs new file mode 100644 index 000000000000..9ea5dcf9af92 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutput.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that migrates on-prem SQL Server databases to Azure SQL + /// Database for online migrations + /// + [Newtonsoft.Json.JsonObject("MigrateSqlServerSqlDbSyncTaskOutput")] + public partial class MigrateSqlServerSqlDbSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutput class. + /// + public MigrateSqlServerSqlDbSyncTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutput class. + /// + + /// Result identifier + /// + public MigrateSqlServerSqlDbSyncTaskOutput(string id = default(string)) + + { + this.Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputDatabaseError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputDatabaseError.cs new file mode 100644 index 000000000000..90c53fcaf8ef --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputDatabaseError.cs @@ -0,0 +1,60 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("DatabaseLevelErrorOutput")] + public partial class MigrateSqlServerSqlDbSyncTaskOutputDatabaseError : MigrateSqlServerSqlDbSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutputDatabaseError class. + /// + public MigrateSqlServerSqlDbSyncTaskOutputDatabaseError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutputDatabaseError class. + /// + + /// Result identifier + /// + + /// Error message + /// + + /// List of error events. + /// + public MigrateSqlServerSqlDbSyncTaskOutputDatabaseError(string id = default(string), string errorMessage = default(string), System.Collections.Generic.IList events = default(System.Collections.Generic.IList)) + + : base(id) + { + this.ErrorMessage = errorMessage; + this.Events = events; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets error message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage {get; set; } + + /// + /// Gets or sets list of error events. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "events")] + public System.Collections.Generic.IList Events {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.cs new file mode 100644 index 000000000000..f7f5a02564ff --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.cs @@ -0,0 +1,192 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("DatabaseLevelOutput")] + public partial class MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel : MigrateSqlServerSqlDbSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel class. + /// + public MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel class. + /// + + /// Result identifier + /// + + /// Name of the database + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Migration state that this database is in + /// Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', + /// 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', + /// 'CANCELLING', 'CANCELLED', 'FAILED' + + /// Number of incoming changes + /// + + /// Number of applied changes + /// + + /// Number of cdc inserts + /// + + /// Number of cdc deletes + /// + + /// Number of cdc updates + /// + + /// Number of tables completed in full load + /// + + /// Number of tables loading in full load + /// + + /// Number of tables queued in full load + /// + + /// Number of tables errored in full load + /// + + /// Indicates if initial load (full load) has been completed + /// + + /// CDC apply latency + /// + public MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel(string id = default(string), string databaseName = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string migrationState = default(string), long? incomingChanges = default(long?), long? appliedChanges = default(long?), long? cdcInsertCounter = default(long?), long? cdcDeleteCounter = default(long?), long? cdcUpdateCounter = default(long?), long? fullLoadCompletedTables = default(long?), long? fullLoadLoadingTables = default(long?), long? fullLoadQueuedTables = default(long?), long? fullLoadErroredTables = default(long?), bool? initializationCompleted = default(bool?), long? latency = default(long?)) + + : base(id) + { + this.DatabaseName = databaseName; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.MigrationState = migrationState; + this.IncomingChanges = incomingChanges; + this.AppliedChanges = appliedChanges; + this.CdcInsertCounter = cdcInsertCounter; + this.CdcDeleteCounter = cdcDeleteCounter; + this.CdcUpdateCounter = cdcUpdateCounter; + this.FullLoadCompletedTables = fullLoadCompletedTables; + this.FullLoadLoadingTables = fullLoadLoadingTables; + this.FullLoadQueuedTables = fullLoadQueuedTables; + this.FullLoadErroredTables = fullLoadErroredTables; + this.InitializationCompleted = initializationCompleted; + this.Latency = latency; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets migration state that this database is in Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationState")] + public string MigrationState {get; private set; } + + /// + /// Gets number of incoming changes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "incomingChanges")] + public long? IncomingChanges {get; private set; } + + /// + /// Gets number of applied changes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "appliedChanges")] + public long? AppliedChanges {get; private set; } + + /// + /// Gets number of cdc inserts + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcInsertCounter")] + public long? CdcInsertCounter {get; private set; } + + /// + /// Gets number of cdc deletes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcDeleteCounter")] + public long? CdcDeleteCounter {get; private set; } + + /// + /// Gets number of cdc updates + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcUpdateCounter")] + public long? CdcUpdateCounter {get; private set; } + + /// + /// Gets number of tables completed in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadCompletedTables")] + public long? FullLoadCompletedTables {get; private set; } + + /// + /// Gets number of tables loading in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadLoadingTables")] + public long? FullLoadLoadingTables {get; private set; } + + /// + /// Gets number of tables queued in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadQueuedTables")] + public long? FullLoadQueuedTables {get; private set; } + + /// + /// Gets number of tables errored in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadErroredTables")] + public long? FullLoadErroredTables {get; private set; } + + /// + /// Gets indicates if initial load (full load) has been completed + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "initializationCompleted")] + public bool? InitializationCompleted {get; private set; } + + /// + /// Gets cDC apply latency + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "latency")] + public long? Latency {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputError.cs new file mode 100644 index 000000000000..b846d3fbe5d4 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputError.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("ErrorOutput")] + public partial class MigrateSqlServerSqlDbSyncTaskOutputError : MigrateSqlServerSqlDbSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutputError class. + /// + public MigrateSqlServerSqlDbSyncTaskOutputError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutputError class. + /// + + /// Result identifier + /// + + /// Migration error + /// + public MigrateSqlServerSqlDbSyncTaskOutputError(string id = default(string), ReportableException error = default(ReportableException)) + + : base(id) + { + this.Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration error + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "error")] + public ReportableException Error {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel.cs new file mode 100644 index 000000000000..4a44877d07ba --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel.cs @@ -0,0 +1,110 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("MigrationLevelOutput")] + public partial class MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel : MigrateSqlServerSqlDbSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel class. + /// + public MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel class. + /// + + /// Result identifier + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Source server version + /// + + /// Source server name + /// + + /// Target server version + /// + + /// Target server name + /// + + /// Count of databases + /// + public MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel(string id = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = default(string), string sourceServer = default(string), string targetServerVersion = default(string), string targetServer = default(string), int? databaseCount = default(int?)) + + : base(id) + { + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.SourceServerVersion = sourceServerVersion; + this.SourceServer = sourceServer; + this.TargetServerVersion = targetServerVersion; + this.TargetServer = targetServer; + this.DatabaseCount = databaseCount; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets source server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerVersion")] + public string SourceServerVersion {get; private set; } + + /// + /// Gets source server name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServer")] + public string SourceServer {get; private set; } + + /// + /// Gets target server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets target server name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServer")] + public string TargetServer {get; private set; } + + /// + /// Gets count of databases + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseCount")] + public int? DatabaseCount {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputTableLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputTableLevel.cs new file mode 100644 index 000000000000..e99d83fc057f --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputTableLevel.cs @@ -0,0 +1,171 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("TableLevelOutput")] + public partial class MigrateSqlServerSqlDbSyncTaskOutputTableLevel : MigrateSqlServerSqlDbSyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutputTableLevel class. + /// + public MigrateSqlServerSqlDbSyncTaskOutputTableLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskOutputTableLevel class. + /// + + /// Result identifier + /// + + /// Name of the table + /// + + /// Name of the database + /// + + /// Number of applied inserts + /// + + /// Number of applied updates + /// + + /// Number of applied deletes + /// + + /// Estimate to finish full load + /// + + /// Full load start time + /// + + /// Full load end time + /// + + /// Number of rows applied in full load + /// + + /// Current state of the table migration + /// Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', + /// 'CANCELED', 'ERROR', 'FAILED' + + /// Total number of applied changes + /// + + /// Number of data errors occurred + /// + + /// Last modified time on target + /// + public MigrateSqlServerSqlDbSyncTaskOutputTableLevel(string id = default(string), string tableName = default(string), string databaseName = default(string), long? cdcInsertCounter = default(long?), long? cdcUpdateCounter = default(long?), long? cdcDeleteCounter = default(long?), System.DateTimeOffset? fullLoadEstFinishTime = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadStartedOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadEndedOn = default(System.DateTimeOffset?), long? fullLoadTotalRows = default(long?), string state = default(string), long? totalChangesApplied = default(long?), long? dataErrorsCounter = default(long?), System.DateTimeOffset? lastModifiedTime = default(System.DateTimeOffset?)) + + : base(id) + { + this.TableName = tableName; + this.DatabaseName = databaseName; + this.CdcInsertCounter = cdcInsertCounter; + this.CdcUpdateCounter = cdcUpdateCounter; + this.CdcDeleteCounter = cdcDeleteCounter; + this.FullLoadEstFinishTime = fullLoadEstFinishTime; + this.FullLoadStartedOn = fullLoadStartedOn; + this.FullLoadEndedOn = fullLoadEndedOn; + this.FullLoadTotalRows = fullLoadTotalRows; + this.State = state; + this.TotalChangesApplied = totalChangesApplied; + this.DataErrorsCounter = dataErrorsCounter; + this.LastModifiedTime = lastModifiedTime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the table + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tableName")] + public string TableName {get; private set; } + + /// + /// Gets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets number of applied inserts + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcInsertCounter")] + public long? CdcInsertCounter {get; private set; } + + /// + /// Gets number of applied updates + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcUpdateCounter")] + public long? CdcUpdateCounter {get; private set; } + + /// + /// Gets number of applied deletes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "cdcDeleteCounter")] + public long? CdcDeleteCounter {get; private set; } + + /// + /// Gets estimate to finish full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadEstFinishTime")] + public System.DateTimeOffset? FullLoadEstFinishTime {get; private set; } + + /// + /// Gets full load start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadStartedOn")] + public System.DateTimeOffset? FullLoadStartedOn {get; private set; } + + /// + /// Gets full load end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadEndedOn")] + public System.DateTimeOffset? FullLoadEndedOn {get; private set; } + + /// + /// Gets number of rows applied in full load + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullLoadTotalRows")] + public long? FullLoadTotalRows {get; private set; } + + /// + /// Gets current state of the table migration Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets total number of applied changes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "totalChangesApplied")] + public long? TotalChangesApplied {get; private set; } + + /// + /// Gets number of data errors occurred + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "dataErrorsCounter")] + public long? DataErrorsCounter {get; private set; } + + /// + /// Gets last modified time on target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lastModifiedTime")] + public System.DateTimeOffset? LastModifiedTime {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskProperties.cs new file mode 100644 index 000000000000..ef171e1651b8 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbSyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that migrates on-prem SQL Server databases to Azure + /// SQL Database for online migrations + /// + [Newtonsoft.Json.JsonObject("Migrate.SqlServer.AzureSqlDb.Sync")] + public partial class MigrateSqlServerSqlDbSyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskProperties class. + /// + public MigrateSqlServerSqlDbSyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbSyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public MigrateSqlServerSqlDbSyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), MigrateSqlServerSqlDbSyncTaskInput input = default(MigrateSqlServerSqlDbSyncTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MigrateSqlServerSqlDbSyncTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskInput.cs new file mode 100644 index 000000000000..e66ac1e376fd --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskInput.cs @@ -0,0 +1,101 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for the task that migrates on-prem SQL Server databases to Azure SQL + /// Database + /// + public partial class MigrateSqlServerSqlDbTaskInput : SqlMigrationTaskInput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskInput class. + /// + public MigrateSqlServerSqlDbTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskInput class. + /// + + /// Information for connecting to source + /// + + /// Information for connecting to target + /// + + /// Databases to migrate + /// + + /// Options for enabling various post migration validations. Available options, + /// 1.) Data Integrity Check: Performs a checksum based comparison on source + /// and target tables after the migration to ensure the correctness of the + /// data. + /// 2.) Schema Validation: Performs a thorough schema comparison between the + /// source and target tables and provides a list of differences between the + /// source and target database, 3.) Query Analysis: Executes a set of queries + /// picked up automatically either from the Query Plan Cache or Query Store and + /// execute them and compares the execution time between the source and target + /// database. + /// + public MigrateSqlServerSqlDbTaskInput(SqlConnectionInfo sourceConnectionInfo, SqlConnectionInfo targetConnectionInfo, System.Collections.Generic.IList selectedDatabases, MigrationValidationOptions validationOptions = default(MigrationValidationOptions)) + + : base(sourceConnectionInfo, targetConnectionInfo) + { + this.SelectedDatabases = selectedDatabases; + this.ValidationOptions = validationOptions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets databases to migrate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedDatabases")] + public System.Collections.Generic.IList SelectedDatabases {get; set; } + + /// + /// Gets or sets options for enabling various post migration validations. + /// Available options, + /// 1.) Data Integrity Check: Performs a checksum based comparison on source + /// and target tables after the migration to ensure the correctness of the + /// data. + /// 2.) Schema Validation: Performs a thorough schema comparison between the + /// source and target tables and provides a list of differences between the + /// source and target database, 3.) Query Analysis: Executes a set of queries + /// picked up automatically either from the Query Plan Cache or Query Store and + /// execute them and compares the execution time between the source and target + /// database. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationOptions")] + public MigrationValidationOptions ValidationOptions {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (this.SelectedDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedDatabases"); + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutput.cs new file mode 100644 index 000000000000..fa8a4d74e335 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutput.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for the task that migrates on-prem SQL Server databases to Azure SQL + /// Database + /// + [Newtonsoft.Json.JsonObject("MigrateSqlServerSqlDbTaskOutput")] + public partial class MigrateSqlServerSqlDbTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskOutput class. + /// + public MigrateSqlServerSqlDbTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskOutput class. + /// + + /// Result identifier + /// + public MigrateSqlServerSqlDbTaskOutput(string id = default(string)) + + { + this.Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputDatabaseLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputDatabaseLevel.cs new file mode 100644 index 000000000000..740cb16dff32 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputDatabaseLevel.cs @@ -0,0 +1,183 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("DatabaseLevelOutput")] + public partial class MigrateSqlServerSqlDbTaskOutputDatabaseLevel : MigrateSqlServerSqlDbTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskOutputDatabaseLevel class. + /// + public MigrateSqlServerSqlDbTaskOutputDatabaseLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskOutputDatabaseLevel class. + /// + + /// Result identifier + /// + + /// Name of the item + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Current state of migration + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Migration stage that this database is in + /// Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', + /// 'Restore', 'Completed' + + /// Status message + /// + + /// Migration progress message + /// + + /// Number of objects + /// + + /// Number of successfully completed objects + /// + + /// Number of database/object errors. + /// + + /// Wildcard string prefix to use for querying all errors of the item + /// + + /// Wildcard string prefix to use for querying all sub-tem results of the item + /// + + /// Migration exceptions and warnings. + /// + + /// Summary of object results in the migration + /// + public MigrateSqlServerSqlDbTaskOutputDatabaseLevel(string id = default(string), string databaseName = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string state = default(string), string stage = default(string), string statusMessage = default(string), string message = default(string), long? numberOfObjects = default(long?), long? numberOfObjectsCompleted = default(long?), long? errorCount = default(long?), string errorPrefix = default(string), string resultPrefix = default(string), System.Collections.Generic.IList exceptionsAndWarnings = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary objectSummary = default(System.Collections.Generic.IDictionary)) + + : base(id) + { + this.DatabaseName = databaseName; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.State = state; + this.Stage = stage; + this.StatusMessage = statusMessage; + this.Message = message; + this.NumberOfObjects = numberOfObjects; + this.NumberOfObjectsCompleted = numberOfObjectsCompleted; + this.ErrorCount = errorCount; + this.ErrorPrefix = errorPrefix; + this.ResultPrefix = resultPrefix; + this.ExceptionsAndWarnings = exceptionsAndWarnings; + this.ObjectSummary = objectSummary; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the item + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets current state of migration Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets migration stage that this database is in Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "stage")] + public string Stage {get; private set; } + + /// + /// Gets status message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "statusMessage")] + public string StatusMessage {get; private set; } + + /// + /// Gets migration progress message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; private set; } + + /// + /// Gets number of objects + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "numberOfObjects")] + public long? NumberOfObjects {get; private set; } + + /// + /// Gets number of successfully completed objects + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "numberOfObjectsCompleted")] + public long? NumberOfObjectsCompleted {get; private set; } + + /// + /// Gets number of database/object errors. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errorCount")] + public long? ErrorCount {get; private set; } + + /// + /// Gets wildcard string prefix to use for querying all errors of the item + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errorPrefix")] + public string ErrorPrefix {get; private set; } + + /// + /// Gets wildcard string prefix to use for querying all sub-tem results of the + /// item + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "resultPrefix")] + public string ResultPrefix {get; private set; } + + /// + /// Gets migration exceptions and warnings. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "exceptionsAndWarnings")] + public System.Collections.Generic.IList ExceptionsAndWarnings {get; private set; } + + /// + /// Gets summary of object results in the migration + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "objectSummary")] + public System.Collections.Generic.IDictionary ObjectSummary {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputError.cs new file mode 100644 index 000000000000..0a657575f270 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputError.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("ErrorOutput")] + public partial class MigrateSqlServerSqlDbTaskOutputError : MigrateSqlServerSqlDbTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskOutputError class. + /// + public MigrateSqlServerSqlDbTaskOutputError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskOutputError class. + /// + + /// Result identifier + /// + + /// Migration error + /// + public MigrateSqlServerSqlDbTaskOutputError(string id = default(string), ReportableException error = default(ReportableException)) + + : base(id) + { + this.Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration error + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "error")] + public ReportableException Error {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputMigrationLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputMigrationLevel.cs new file mode 100644 index 000000000000..174fbdb70ae1 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputMigrationLevel.cs @@ -0,0 +1,194 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("MigrationLevelOutput")] + public partial class MigrateSqlServerSqlDbTaskOutputMigrationLevel : MigrateSqlServerSqlDbTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskOutputMigrationLevel class. + /// + public MigrateSqlServerSqlDbTaskOutputMigrationLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskOutputMigrationLevel class. + /// + + /// Result identifier + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Duration of task execution in seconds. + /// + + /// Current status of migration + /// Possible values include: 'Default', 'Connecting', + /// 'SourceAndTargetSelected', 'SelectLogins', 'Configured', 'Running', + /// 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' + + /// Migration status message + /// + + /// Migration progress message + /// + + /// Selected databases as a map from database name to database id + /// + + /// Summary of database results in the migration + /// + + /// Migration Validation Results + /// + + /// Migration Report Result, provides unique url for downloading your migration + /// report. + /// + + /// Source server version + /// + + /// Source server brand version + /// + + /// Target server version + /// + + /// Target server brand version + /// + + /// Migration exceptions and warnings. + /// + public MigrateSqlServerSqlDbTaskOutputMigrationLevel(string id = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), long? durationInSeconds = default(long?), string status = default(string), string statusMessage = default(string), string message = default(string), System.Collections.Generic.IDictionary databases = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary databaseSummary = default(System.Collections.Generic.IDictionary), MigrationValidationResult migrationValidationResult = default(MigrationValidationResult), MigrationReportResult migrationReportResult = default(MigrationReportResult), string sourceServerVersion = default(string), string sourceServerBrandVersion = default(string), string targetServerVersion = default(string), string targetServerBrandVersion = default(string), System.Collections.Generic.IList exceptionsAndWarnings = default(System.Collections.Generic.IList)) + + : base(id) + { + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.DurationInSeconds = durationInSeconds; + this.Status = status; + this.StatusMessage = statusMessage; + this.Message = message; + this.Databases = databases; + this.DatabaseSummary = databaseSummary; + this.MigrationValidationResult = migrationValidationResult; + this.MigrationReportResult = migrationReportResult; + this.SourceServerVersion = sourceServerVersion; + this.SourceServerBrandVersion = sourceServerBrandVersion; + this.TargetServerVersion = targetServerVersion; + this.TargetServerBrandVersion = targetServerBrandVersion; + this.ExceptionsAndWarnings = exceptionsAndWarnings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets duration of task execution in seconds. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "durationInSeconds")] + public long? DurationInSeconds {get; private set; } + + /// + /// Gets current status of migration Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + public string Status {get; private set; } + + /// + /// Gets migration status message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "statusMessage")] + public string StatusMessage {get; private set; } + + /// + /// Gets migration progress message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; private set; } + + /// + /// Gets selected databases as a map from database name to database id + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IDictionary Databases {get; private set; } + + /// + /// Gets summary of database results in the migration + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseSummary")] + public System.Collections.Generic.IDictionary DatabaseSummary {get; private set; } + + /// + /// Gets or sets migration Validation Results + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationValidationResult")] + public MigrationValidationResult MigrationValidationResult {get; set; } + + /// + /// Gets or sets migration Report Result, provides unique url for downloading + /// your migration report. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationReportResult")] + public MigrationReportResult MigrationReportResult {get; set; } + + /// + /// Gets source server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerVersion")] + public string SourceServerVersion {get; private set; } + + /// + /// Gets source server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerBrandVersion")] + public string SourceServerBrandVersion {get; private set; } + + /// + /// Gets target server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets target server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerBrandVersion")] + public string TargetServerBrandVersion {get; private set; } + + /// + /// Gets migration exceptions and warnings. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "exceptionsAndWarnings")] + public System.Collections.Generic.IList ExceptionsAndWarnings {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputTableLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputTableLevel.cs new file mode 100644 index 000000000000..e306d780b509 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskOutputTableLevel.cs @@ -0,0 +1,132 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("TableLevelOutput")] + public partial class MigrateSqlServerSqlDbTaskOutputTableLevel : MigrateSqlServerSqlDbTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskOutputTableLevel class. + /// + public MigrateSqlServerSqlDbTaskOutputTableLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskOutputTableLevel class. + /// + + /// Result identifier + /// + + /// Name of the item + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Current state of migration + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Status message + /// + + /// Number of items + /// + + /// Number of successfully completed items + /// + + /// Wildcard string prefix to use for querying all errors of the item + /// + + /// Wildcard string prefix to use for querying all sub-tem results of the item + /// + public MigrateSqlServerSqlDbTaskOutputTableLevel(string id = default(string), string objectName = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string state = default(string), string statusMessage = default(string), long? itemsCount = default(long?), long? itemsCompletedCount = default(long?), string errorPrefix = default(string), string resultPrefix = default(string)) + + : base(id) + { + this.ObjectName = objectName; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.State = state; + this.StatusMessage = statusMessage; + this.ItemsCount = itemsCount; + this.ItemsCompletedCount = itemsCompletedCount; + this.ErrorPrefix = errorPrefix; + this.ResultPrefix = resultPrefix; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the item + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "objectName")] + public string ObjectName {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets current state of migration Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets status message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "statusMessage")] + public string StatusMessage {get; private set; } + + /// + /// Gets number of items + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "itemsCount")] + public long? ItemsCount {get; private set; } + + /// + /// Gets number of successfully completed items + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "itemsCompletedCount")] + public long? ItemsCompletedCount {get; private set; } + + /// + /// Gets wildcard string prefix to use for querying all errors of the item + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errorPrefix")] + public string ErrorPrefix {get; private set; } + + /// + /// Gets wildcard string prefix to use for querying all sub-tem results of the + /// item + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "resultPrefix")] + public string ResultPrefix {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskProperties.cs new file mode 100644 index 000000000000..9d07c9022e13 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlDbTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that migrates on-prem SQL Server databases to Azure + /// SQL Database + /// + [Newtonsoft.Json.JsonObject("Migrate.SqlServer.SqlDb")] + public partial class MigrateSqlServerSqlDbTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskProperties class. + /// + public MigrateSqlServerSqlDbTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlDbTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public MigrateSqlServerSqlDbTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), MigrateSqlServerSqlDbTaskInput input = default(MigrateSqlServerSqlDbTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MigrateSqlServerSqlDbTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMIDatabaseInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMIDatabaseInput.cs new file mode 100644 index 000000000000..ba7d5d78b9dc --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMIDatabaseInput.cs @@ -0,0 +1,104 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database specific information for SQL to Azure SQL DB Managed Instance + /// migration task inputs + /// + public partial class MigrateSqlServerSqlMIDatabaseInput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMIDatabaseInput class. + /// + public MigrateSqlServerSqlMIDatabaseInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMIDatabaseInput class. + /// + + /// Name of the database + /// + + /// Name of the database at destination + /// + + /// Backup file share information for backing up this database. + /// + + /// The list of backup files to be used in case of existing backups. + /// + public MigrateSqlServerSqlMIDatabaseInput(string name, string restoreDatabaseName, FileShare backupFileShare = default(FileShare), System.Collections.Generic.IList backupFilePaths = default(System.Collections.Generic.IList)) + + { + this.Name = name; + this.RestoreDatabaseName = restoreDatabaseName; + this.BackupFileShare = backupFileShare; + this.BackupFilePaths = backupFilePaths; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets name of the database at destination + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "restoreDatabaseName")] + public string RestoreDatabaseName {get; set; } + + /// + /// Gets or sets backup file share information for backing up this database. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupFileShare")] + public FileShare BackupFileShare {get; set; } + + /// + /// Gets or sets the list of backup files to be used in case of existing + /// backups. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupFilePaths")] + public System.Collections.Generic.IList BackupFilePaths {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Name == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); + } + if (this.RestoreDatabaseName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "RestoreDatabaseName"); + } + + + if (this.BackupFileShare != null) + { + this.BackupFileShare.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskInput.cs new file mode 100644 index 000000000000..f7245129a2c8 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskInput.cs @@ -0,0 +1,70 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for task that migrates SQL Server databases to Azure SQL Database + /// Managed Instance online scenario. + /// + public partial class MigrateSqlServerSqlMISyncTaskInput : SqlServerSqlMISyncTaskInput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskInput class. + /// + public MigrateSqlServerSqlMISyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskInput class. + /// + + /// Databases to migrate + /// + + /// Backup file share information for all selected databases. + /// + + /// Fully qualified resourceId of storage + /// + + /// Connection information for source SQL Server + /// + + /// Connection information for Azure SQL Database Managed Instance + /// + + /// Azure Active Directory Application the DMS instance will use to connect to + /// the target instance of Azure SQL Database Managed Instance and the Azure + /// Storage Account + /// + public MigrateSqlServerSqlMISyncTaskInput(System.Collections.Generic.IList selectedDatabases, string storageResourceId, SqlConnectionInfo sourceConnectionInfo, MiSqlConnectionInfo targetConnectionInfo, AzureActiveDirectoryApp azureApp, FileShare backupFileShare = default(FileShare)) + + : base(selectedDatabases, storageResourceId, sourceConnectionInfo, targetConnectionInfo, azureApp, backupFileShare) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutput.cs new file mode 100644 index 000000000000..08b2c27123af --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutput.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for task that migrates SQL Server databases to Azure SQL Database + /// Managed Instance using Log Replay Service. + /// + [Newtonsoft.Json.JsonObject("MigrateSqlServerSqlMiSyncTaskOutput")] + public partial class MigrateSqlServerSqlMISyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskOutput class. + /// + public MigrateSqlServerSqlMISyncTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskOutput class. + /// + + /// Result identifier + /// + public MigrateSqlServerSqlMISyncTaskOutput(string id = default(string)) + + { + this.Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.cs new file mode 100644 index 000000000000..ea40e7d6f545 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.cs @@ -0,0 +1,157 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("DatabaseLevelOutput")] + public partial class MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel : MigrateSqlServerSqlMISyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel class. + /// + public MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel class. + /// + + /// Result identifier + /// + + /// Name of the database + /// + + /// Current state of database + /// Possible values include: 'UNDEFINED', 'INITIAL', + /// 'FULL_BACKUP_UPLOAD_START', 'LOG_SHIPPING_START', 'UPLOAD_LOG_FILES_START', + /// 'CUTOVER_START', 'POST_CUTOVER_COMPLETE', 'COMPLETED', 'CANCELLED', + /// 'FAILED' + + /// Database migration start time + /// + + /// Database migration end time + /// + + /// Details of full backup set + /// + + /// Last applied backup set information + /// + + /// Backup sets that are currently active (Either being uploaded or getting + /// restored) + /// + + /// Name of container created in the Azure Storage account where backups are + /// copied to + /// + + /// prefix string to use for querying errors for this database + /// + + /// Whether full backup has been applied to the target database or not + /// + + /// Migration exceptions and warnings + /// + public MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel(string id = default(string), string sourceDatabaseName = default(string), string migrationState = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), BackupSetInfo fullBackupSetInfo = default(BackupSetInfo), BackupSetInfo lastRestoredBackupSetInfo = default(BackupSetInfo), System.Collections.Generic.IList activeBackupSets = default(System.Collections.Generic.IList), string containerName = default(string), string errorPrefix = default(string), bool? isFullBackupRestored = default(bool?), System.Collections.Generic.IList exceptionsAndWarnings = default(System.Collections.Generic.IList)) + + : base(id) + { + this.SourceDatabaseName = sourceDatabaseName; + this.MigrationState = migrationState; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.FullBackupSetInfo = fullBackupSetInfo; + this.LastRestoredBackupSetInfo = lastRestoredBackupSetInfo; + this.ActiveBackupSets = activeBackupSets; + this.ContainerName = containerName; + this.ErrorPrefix = errorPrefix; + this.IsFullBackupRestored = isFullBackupRestored; + this.ExceptionsAndWarnings = exceptionsAndWarnings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceDatabaseName")] + public string SourceDatabaseName {get; private set; } + + /// + /// Gets current state of database Possible values include: 'UNDEFINED', 'INITIAL', 'FULL_BACKUP_UPLOAD_START', 'LOG_SHIPPING_START', 'UPLOAD_LOG_FILES_START', 'CUTOVER_START', 'POST_CUTOVER_COMPLETE', 'COMPLETED', 'CANCELLED', 'FAILED' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationState")] + public string MigrationState {get; private set; } + + /// + /// Gets database migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets database migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets details of full backup set + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fullBackupSetInfo")] + public BackupSetInfo FullBackupSetInfo {get; private set; } + + /// + /// Gets last applied backup set information + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lastRestoredBackupSetInfo")] + public BackupSetInfo LastRestoredBackupSetInfo {get; private set; } + + /// + /// Gets backup sets that are currently active (Either being uploaded or + /// getting restored) + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "activeBackupSets")] + public System.Collections.Generic.IList ActiveBackupSets {get; private set; } + + /// + /// Gets name of container created in the Azure Storage account where backups + /// are copied to + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "containerName")] + public string ContainerName {get; private set; } + + /// + /// Gets prefix string to use for querying errors for this database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errorPrefix")] + public string ErrorPrefix {get; private set; } + + /// + /// Gets whether full backup has been applied to the target database or not + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isFullBackupRestored")] + public bool? IsFullBackupRestored {get; private set; } + + /// + /// Gets migration exceptions and warnings + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "exceptionsAndWarnings")] + public System.Collections.Generic.IList ExceptionsAndWarnings {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputError.cs new file mode 100644 index 000000000000..bb2c0ae2a3a8 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputError.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("ErrorOutput")] + public partial class MigrateSqlServerSqlMISyncTaskOutputError : MigrateSqlServerSqlMISyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskOutputError class. + /// + public MigrateSqlServerSqlMISyncTaskOutputError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskOutputError class. + /// + + /// Result identifier + /// + + /// Migration error + /// + public MigrateSqlServerSqlMISyncTaskOutputError(string id = default(string), ReportableException error = default(ReportableException)) + + : base(id) + { + this.Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration error + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "error")] + public ReportableException Error {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.cs new file mode 100644 index 000000000000..2c8501a92429 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.cs @@ -0,0 +1,151 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("MigrationLevelOutput")] + public partial class MigrateSqlServerSqlMISyncTaskOutputMigrationLevel : MigrateSqlServerSqlMISyncTaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskOutputMigrationLevel class. + /// + public MigrateSqlServerSqlMISyncTaskOutputMigrationLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskOutputMigrationLevel class. + /// + + /// Result identifier + /// + + /// Count of databases + /// + + /// Current state of migration + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Migration start time + /// + + /// Migration end time + /// + + /// Source server name + /// + + /// Source server version + /// + + /// Source server brand version + /// + + /// Target server name + /// + + /// Target server version + /// + + /// Target server brand version + /// + + /// Number of database level errors + /// + public MigrateSqlServerSqlMISyncTaskOutputMigrationLevel(string id = default(string), int? databaseCount = default(int?), string state = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerName = default(string), string sourceServerVersion = default(string), string sourceServerBrandVersion = default(string), string targetServerName = default(string), string targetServerVersion = default(string), string targetServerBrandVersion = default(string), int? databaseErrorCount = default(int?)) + + : base(id) + { + this.DatabaseCount = databaseCount; + this.State = state; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.SourceServerName = sourceServerName; + this.SourceServerVersion = sourceServerVersion; + this.SourceServerBrandVersion = sourceServerBrandVersion; + this.TargetServerName = targetServerName; + this.TargetServerVersion = targetServerVersion; + this.TargetServerBrandVersion = targetServerBrandVersion; + this.DatabaseErrorCount = databaseErrorCount; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets count of databases + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseCount")] + public int? DatabaseCount {get; private set; } + + /// + /// Gets current state of migration Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets source server name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerName")] + public string SourceServerName {get; private set; } + + /// + /// Gets source server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerVersion")] + public string SourceServerVersion {get; private set; } + + /// + /// Gets source server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerBrandVersion")] + public string SourceServerBrandVersion {get; private set; } + + /// + /// Gets target server name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerName")] + public string TargetServerName {get; private set; } + + /// + /// Gets target server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets target server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerBrandVersion")] + public string TargetServerBrandVersion {get; private set; } + + /// + /// Gets number of database level errors + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseErrorCount")] + public int? DatabaseErrorCount {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskProperties.cs new file mode 100644 index 000000000000..4109af88afad --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMISyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for task that migrates SQL Server databases to Azure SQL + /// Database Managed Instance sync scenario + /// + [Newtonsoft.Json.JsonObject("Migrate.SqlServer.AzureSqlDbMI.Sync.LRS")] + public partial class MigrateSqlServerSqlMISyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskProperties class. + /// + public MigrateSqlServerSqlMISyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMISyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public MigrateSqlServerSqlMISyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), MigrateSqlServerSqlMISyncTaskInput input = default(MigrateSqlServerSqlMISyncTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MigrateSqlServerSqlMISyncTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskInput.cs new file mode 100644 index 000000000000..3b9333c12885 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskInput.cs @@ -0,0 +1,151 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for task that migrates SQL Server databases to Azure SQL Database + /// Managed Instance. + /// + public partial class MigrateSqlServerSqlMITaskInput : SqlMigrationTaskInput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskInput class. + /// + public MigrateSqlServerSqlMITaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskInput class. + /// + + /// Information for connecting to source + /// + + /// Information for connecting to target + /// + + /// Databases to migrate + /// + + /// Logins to migrate. + /// + + /// Agent Jobs to migrate. + /// + + /// Backup file share information for all selected databases. + /// + + /// SAS URI of Azure Storage Account Container to be used for storing backup + /// files. + /// + + /// Backup Mode to specify whether to use existing backup or create new backup. + /// If using existing backups, backup file paths are required to be provided in + /// selectedDatabases. + /// Possible values include: 'CreateBackup', 'ExistingBackup' + public MigrateSqlServerSqlMITaskInput(SqlConnectionInfo sourceConnectionInfo, SqlConnectionInfo targetConnectionInfo, System.Collections.Generic.IList selectedDatabases, BlobShare backupBlobShare, System.Collections.Generic.IList selectedLogins = default(System.Collections.Generic.IList), System.Collections.Generic.IList selectedAgentJobs = default(System.Collections.Generic.IList), FileShare backupFileShare = default(FileShare), string backupMode = default(string)) + + : base(sourceConnectionInfo, targetConnectionInfo) + { + this.SelectedDatabases = selectedDatabases; + this.SelectedLogins = selectedLogins; + this.SelectedAgentJobs = selectedAgentJobs; + this.BackupFileShare = backupFileShare; + this.BackupBlobShare = backupBlobShare; + this.BackupMode = backupMode; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets databases to migrate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedDatabases")] + public System.Collections.Generic.IList SelectedDatabases {get; set; } + + /// + /// Gets or sets logins to migrate. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedLogins")] + public System.Collections.Generic.IList SelectedLogins {get; set; } + + /// + /// Gets or sets agent Jobs to migrate. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedAgentJobs")] + public System.Collections.Generic.IList SelectedAgentJobs {get; set; } + + /// + /// Gets or sets backup file share information for all selected databases. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupFileShare")] + public FileShare BackupFileShare {get; set; } + + /// + /// Gets or sets sAS URI of Azure Storage Account Container to be used for + /// storing backup files. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupBlobShare")] + public BlobShare BackupBlobShare {get; set; } + + /// + /// Gets or sets backup Mode to specify whether to use existing backup or + /// create new backup. If using existing backups, backup file paths are + /// required to be provided in selectedDatabases. Possible values include: 'CreateBackup', 'ExistingBackup' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupMode")] + public string BackupMode {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (this.SelectedDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedDatabases"); + } + if (this.BackupBlobShare == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "BackupBlobShare"); + } + if (this.SelectedDatabases != null) + { + foreach (var element in this.SelectedDatabases) + { + if (element != null) + { + element.Validate(); + } + } + } + + + if (this.BackupFileShare != null) + { + this.BackupFileShare.Validate(); + } + if (this.BackupBlobShare != null) + { + this.BackupBlobShare.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutput.cs new file mode 100644 index 000000000000..4e73eac02106 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutput.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for task that migrates SQL Server databases to Azure SQL Database + /// Managed Instance. + /// + [Newtonsoft.Json.JsonObject("MigrateSqlServerSqlMiTaskOutput")] + public partial class MigrateSqlServerSqlMITaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutput class. + /// + public MigrateSqlServerSqlMITaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutput class. + /// + + /// Result identifier + /// + public MigrateSqlServerSqlMITaskOutput(string id = default(string)) + + { + this.Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputAgentJobLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputAgentJobLevel.cs new file mode 100644 index 000000000000..b762ba8269dc --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputAgentJobLevel.cs @@ -0,0 +1,111 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("AgentJobLevelOutput")] + public partial class MigrateSqlServerSqlMITaskOutputAgentJobLevel : MigrateSqlServerSqlMITaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutputAgentJobLevel class. + /// + public MigrateSqlServerSqlMITaskOutputAgentJobLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutputAgentJobLevel class. + /// + + /// Result identifier + /// + + /// Agent Job name. + /// + + /// The state of the original Agent Job. + /// + + /// Current state of migration + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Migration start time + /// + + /// Migration end time + /// + + /// Migration progress message + /// + + /// Migration errors and warnings per job + /// + public MigrateSqlServerSqlMITaskOutputAgentJobLevel(string id = default(string), string name = default(string), bool? isEnabled = default(bool?), string state = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string message = default(string), System.Collections.Generic.IList exceptionsAndWarnings = default(System.Collections.Generic.IList)) + + : base(id) + { + this.Name = name; + this.IsEnabled = isEnabled; + this.State = state; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.Message = message; + this.ExceptionsAndWarnings = exceptionsAndWarnings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets agent Job name. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets the state of the original Agent Job. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isEnabled")] + public bool? IsEnabled {get; private set; } + + /// + /// Gets current state of migration Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets migration progress message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; private set; } + + /// + /// Gets migration errors and warnings per job + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "exceptionsAndWarnings")] + public System.Collections.Generic.IList ExceptionsAndWarnings {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputDatabaseLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputDatabaseLevel.cs new file mode 100644 index 000000000000..320056490043 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputDatabaseLevel.cs @@ -0,0 +1,122 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("DatabaseLevelOutput")] + public partial class MigrateSqlServerSqlMITaskOutputDatabaseLevel : MigrateSqlServerSqlMITaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutputDatabaseLevel class. + /// + public MigrateSqlServerSqlMITaskOutputDatabaseLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutputDatabaseLevel class. + /// + + /// Result identifier + /// + + /// Name of the database + /// + + /// Size of the database in megabytes + /// + + /// Current state of migration + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Current stage of migration + /// Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', + /// 'Restore', 'Completed' + + /// Migration start time + /// + + /// Migration end time + /// + + /// Migration progress message + /// + + /// Migration exceptions and warnings + /// + public MigrateSqlServerSqlMITaskOutputDatabaseLevel(string id = default(string), string databaseName = default(string), double? sizeMb = default(double?), string state = default(string), string stage = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string message = default(string), System.Collections.Generic.IList exceptionsAndWarnings = default(System.Collections.Generic.IList)) + + : base(id) + { + this.DatabaseName = databaseName; + this.SizeMb = sizeMb; + this.State = state; + this.Stage = stage; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.Message = message; + this.ExceptionsAndWarnings = exceptionsAndWarnings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; private set; } + + /// + /// Gets size of the database in megabytes + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sizeMB")] + public double? SizeMb {get; private set; } + + /// + /// Gets current state of migration Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets current stage of migration Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "stage")] + public string Stage {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets migration progress message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; private set; } + + /// + /// Gets migration exceptions and warnings + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "exceptionsAndWarnings")] + public System.Collections.Generic.IList ExceptionsAndWarnings {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputError.cs new file mode 100644 index 000000000000..6ebda3809aae --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputError.cs @@ -0,0 +1,50 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("ErrorOutput")] + public partial class MigrateSqlServerSqlMITaskOutputError : MigrateSqlServerSqlMITaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutputError class. + /// + public MigrateSqlServerSqlMITaskOutputError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutputError class. + /// + + /// Result identifier + /// + + /// Migration error + /// + public MigrateSqlServerSqlMITaskOutputError(string id = default(string), ReportableException error = default(ReportableException)) + + : base(id) + { + this.Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration error + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "error")] + public ReportableException Error {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputLoginLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputLoginLevel.cs new file mode 100644 index 000000000000..c23d4dac0c22 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputLoginLevel.cs @@ -0,0 +1,113 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("LoginLevelOutput")] + public partial class MigrateSqlServerSqlMITaskOutputLoginLevel : MigrateSqlServerSqlMITaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutputLoginLevel class. + /// + public MigrateSqlServerSqlMITaskOutputLoginLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutputLoginLevel class. + /// + + /// Result identifier + /// + + /// Login name. + /// + + /// Current state of login + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Current stage of login + /// Possible values include: 'None', 'Initialize', 'LoginMigration', + /// 'EstablishUserMapping', 'AssignRoleMembership', 'AssignRoleOwnership', + /// 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' + + /// Login migration start time + /// + + /// Login migration end time + /// + + /// Login migration progress message + /// + + /// Login migration errors and warnings per login + /// + public MigrateSqlServerSqlMITaskOutputLoginLevel(string id = default(string), string loginName = default(string), string state = default(string), string stage = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string message = default(string), System.Collections.Generic.IList exceptionsAndWarnings = default(System.Collections.Generic.IList)) + + : base(id) + { + this.LoginName = loginName; + this.State = state; + this.Stage = stage; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.Message = message; + this.ExceptionsAndWarnings = exceptionsAndWarnings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets login name. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "loginName")] + public string LoginName {get; private set; } + + /// + /// Gets current state of login Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets current stage of login Possible values include: 'None', 'Initialize', 'LoginMigration', 'EstablishUserMapping', 'AssignRoleMembership', 'AssignRoleOwnership', 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "stage")] + public string Stage {get; private set; } + + /// + /// Gets login migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets login migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets login migration progress message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; private set; } + + /// + /// Gets login migration errors and warnings per login + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "exceptionsAndWarnings")] + public System.Collections.Generic.IList ExceptionsAndWarnings {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputMigrationLevel.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputMigrationLevel.cs new file mode 100644 index 000000000000..aa7256377193 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskOutputMigrationLevel.cs @@ -0,0 +1,193 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + [Newtonsoft.Json.JsonObject("MigrationLevelOutput")] + public partial class MigrateSqlServerSqlMITaskOutputMigrationLevel : MigrateSqlServerSqlMITaskOutput + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutputMigrationLevel class. + /// + public MigrateSqlServerSqlMITaskOutputMigrationLevel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskOutputMigrationLevel class. + /// + + /// Result identifier + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Current status of migration + /// Possible values include: 'Default', 'Connecting', + /// 'SourceAndTargetSelected', 'SelectLogins', 'Configured', 'Running', + /// 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' + + /// Current state of migration + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Selected agent jobs as a map from name to id + /// + + /// Selected logins as a map from name to id + /// + + /// Migration progress message + /// + + /// Map of server role migration results. + /// + + /// List of orphaned users. + /// + + /// Selected databases as a map from database name to database id + /// + + /// Source server version + /// + + /// Source server brand version + /// + + /// Target server version + /// + + /// Target server brand version + /// + + /// Migration exceptions and warnings. + /// + public MigrateSqlServerSqlMITaskOutputMigrationLevel(string id = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string status = default(string), string state = default(string), System.Collections.Generic.IDictionary agentJobs = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary logins = default(System.Collections.Generic.IDictionary), string message = default(string), System.Collections.Generic.IDictionary serverRoleResults = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IList orphanedUsersInfo = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary databases = default(System.Collections.Generic.IDictionary), string sourceServerVersion = default(string), string sourceServerBrandVersion = default(string), string targetServerVersion = default(string), string targetServerBrandVersion = default(string), System.Collections.Generic.IList exceptionsAndWarnings = default(System.Collections.Generic.IList)) + + : base(id) + { + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.Status = status; + this.State = state; + this.AgentJobs = agentJobs; + this.Logins = logins; + this.Message = message; + this.ServerRoleResults = serverRoleResults; + this.OrphanedUsersInfo = orphanedUsersInfo; + this.Databases = databases; + this.SourceServerVersion = sourceServerVersion; + this.SourceServerBrandVersion = sourceServerBrandVersion; + this.TargetServerVersion = targetServerVersion; + this.TargetServerBrandVersion = targetServerBrandVersion; + this.ExceptionsAndWarnings = exceptionsAndWarnings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets current status of migration Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + public string Status {get; private set; } + + /// + /// Gets current state of migration Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets selected agent jobs as a map from name to id + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "agentJobs")] + public System.Collections.Generic.IDictionary AgentJobs {get; private set; } + + /// + /// Gets selected logins as a map from name to id + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "logins")] + public System.Collections.Generic.IDictionary Logins {get; private set; } + + /// + /// Gets migration progress message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; private set; } + + /// + /// Gets map of server role migration results. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverRoleResults")] + public System.Collections.Generic.IDictionary ServerRoleResults {get; private set; } + + /// + /// Gets list of orphaned users. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "orphanedUsersInfo")] + public System.Collections.Generic.IList OrphanedUsersInfo {get; private set; } + + /// + /// Gets selected databases as a map from database name to database id + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IDictionary Databases {get; private set; } + + /// + /// Gets source server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerVersion")] + public string SourceServerVersion {get; private set; } + + /// + /// Gets source server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerBrandVersion")] + public string SourceServerBrandVersion {get; private set; } + + /// + /// Gets target server version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerVersion")] + public string TargetServerVersion {get; private set; } + + /// + /// Gets target server brand version + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerBrandVersion")] + public string TargetServerBrandVersion {get; private set; } + + /// + /// Gets migration exceptions and warnings. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "exceptionsAndWarnings")] + public System.Collections.Generic.IList ExceptionsAndWarnings {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskProperties.cs new file mode 100644 index 000000000000..601788e1ce66 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSqlServerSqlMITaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for task that migrates SQL Server databases to Azure SQL + /// Database Managed Instance + /// + [Newtonsoft.Json.JsonObject("Migrate.SqlServer.AzureSqlDbMI")] + public partial class MigrateSqlServerSqlMITaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskProperties class. + /// + public MigrateSqlServerSqlMITaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSqlServerSqlMITaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public MigrateSqlServerSqlMITaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), MigrateSqlServerSqlMITaskInput input = default(MigrateSqlServerSqlMITaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MigrateSqlServerSqlMITaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSyncCompleteCommandInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSyncCompleteCommandInput.cs new file mode 100644 index 000000000000..880aef7c34bb --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSyncCompleteCommandInput.cs @@ -0,0 +1,72 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for command that completes sync migration for a database. + /// + public partial class MigrateSyncCompleteCommandInput + { + /// + /// Initializes a new instance of the MigrateSyncCompleteCommandInput class. + /// + public MigrateSyncCompleteCommandInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSyncCompleteCommandInput class. + /// + + /// Name of database + /// + + /// Time stamp to complete + /// + public MigrateSyncCompleteCommandInput(string databaseName, System.DateTimeOffset? commitTimeStamp = default(System.DateTimeOffset?)) + + { + this.DatabaseName = databaseName; + this.CommitTimeStamp = commitTimeStamp; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; set; } + + /// + /// Gets or sets time stamp to complete + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "commitTimeStamp")] + public System.DateTimeOffset? CommitTimeStamp {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.DatabaseName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "DatabaseName"); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSyncCompleteCommandOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSyncCompleteCommandOutput.cs new file mode 100644 index 000000000000..4451ffedc611 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSyncCompleteCommandOutput.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for command that completes sync migration for a database. + /// + public partial class MigrateSyncCompleteCommandOutput + { + /// + /// Initializes a new instance of the MigrateSyncCompleteCommandOutput class. + /// + public MigrateSyncCompleteCommandOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSyncCompleteCommandOutput class. + /// + + /// Result identifier + /// + + /// List of errors that happened during the command execution + /// + public MigrateSyncCompleteCommandOutput(string id = default(string), System.Collections.Generic.IList errors = default(System.Collections.Generic.IList)) + + { + this.Id = id; + this.Errors = errors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets list of errors that happened during the command execution + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errors")] + public System.Collections.Generic.IList Errors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSyncCompleteCommandProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSyncCompleteCommandProperties.cs new file mode 100644 index 000000000000..d38b39eff750 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrateSyncCompleteCommandProperties.cs @@ -0,0 +1,81 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the command that completes sync migration for a database. + /// + [Newtonsoft.Json.JsonObject("Migrate.Sync.Complete.Database")] + public partial class MigrateSyncCompleteCommandProperties : CommandProperties + { + /// + /// Initializes a new instance of the MigrateSyncCompleteCommandProperties class. + /// + public MigrateSyncCompleteCommandProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrateSyncCompleteCommandProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the command. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + /// 'Failed' + + /// Command input + /// + + /// Command output. This is ignored if submitted. + /// + public MigrateSyncCompleteCommandProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), MigrateSyncCompleteCommandInput input = default(MigrateSyncCompleteCommandInput), MigrateSyncCompleteCommandOutput output = default(MigrateSyncCompleteCommandOutput)) + + : base(errors, state) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets command input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MigrateSyncCompleteCommandInput Input {get; set; } + + /// + /// Gets command output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public MigrateSyncCompleteCommandOutput Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationEligibilityInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationEligibilityInfo.cs new file mode 100644 index 000000000000..ba4aeafa1483 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationEligibilityInfo.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Information about migration eligibility of a server object + /// + public partial class MigrationEligibilityInfo + { + /// + /// Initializes a new instance of the MigrationEligibilityInfo class. + /// + public MigrationEligibilityInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrationEligibilityInfo class. + /// + + /// Whether object is eligible for migration or not. + /// + + /// Information about eligibility failure for the server object. + /// + public MigrationEligibilityInfo(bool? isEligibileForMigration = default(bool?), System.Collections.Generic.IList validationMessages = default(System.Collections.Generic.IList)) + + { + this.IsEligibileForMigration = isEligibileForMigration; + this.ValidationMessages = validationMessages; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets whether object is eligible for migration or not. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isEligibileForMigration")] + public bool? IsEligibileForMigration {get; private set; } + + /// + /// Gets information about eligibility failure for the server object. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationMessages")] + public System.Collections.Generic.IList ValidationMessages {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationReportResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationReportResult.cs new file mode 100644 index 000000000000..6de454e4aa10 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationReportResult.cs @@ -0,0 +1,59 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Migration validation report result, contains the url for downloading the + /// generated report. + /// + public partial class MigrationReportResult + { + /// + /// Initializes a new instance of the MigrationReportResult class. + /// + public MigrationReportResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrationReportResult class. + /// + + /// Migration validation result identifier + /// + + /// The url of the report. + /// + public MigrationReportResult(string id = default(string), string reportUrl = default(string)) + + { + this.Id = id; + this.ReportUrl = reportUrl; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets migration validation result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; set; } + + /// + /// Gets or sets the url of the report. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "reportUrl")] + public string ReportUrl {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationState.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationState.cs new file mode 100644 index 000000000000..6f53cf61059d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationState.cs @@ -0,0 +1,24 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for MigrationState. + /// + + + public static class MigrationState + { + public const string None = "None"; + public const string InProgress = "InProgress"; + public const string Failed = "Failed"; + public const string Warning = "Warning"; + public const string Completed = "Completed"; + public const string Skipped = "Skipped"; + public const string Stopped = "Stopped"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationStatus.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationStatus.cs new file mode 100644 index 000000000000..fa912b783c01 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationStatus.cs @@ -0,0 +1,27 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for MigrationStatus. + /// + + + public static class MigrationStatus + { + public const string Default = "Default"; + public const string Connecting = "Connecting"; + public const string SourceAndTargetSelected = "SourceAndTargetSelected"; + public const string SelectLogins = "SelectLogins"; + public const string Configured = "Configured"; + public const string Running = "Running"; + public const string Error = "Error"; + public const string Stopped = "Stopped"; + public const string Completed = "Completed"; + public const string CompletedWithWarnings = "CompletedWithWarnings"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationTableMetadata.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationTableMetadata.cs new file mode 100644 index 000000000000..7ed018ddcc59 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationTableMetadata.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Metadata for tables selected in migration project + /// + public partial class MigrationTableMetadata + { + /// + /// Initializes a new instance of the MigrationTableMetadata class. + /// + public MigrationTableMetadata() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrationTableMetadata class. + /// + + /// Source table name + /// + + /// Target table name + /// + public MigrationTableMetadata(string sourceTableName = default(string), string targetTableName = default(string)) + + { + this.SourceTableName = sourceTableName; + this.TargetTableName = targetTableName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets source table name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceTableName")] + public string SourceTableName {get; private set; } + + /// + /// Gets target table name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetTableName")] + public string TargetTableName {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationDatabaseLevelResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationDatabaseLevelResult.cs new file mode 100644 index 000000000000..7b2b4173a58b --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationDatabaseLevelResult.cs @@ -0,0 +1,143 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database level validation results + /// + public partial class MigrationValidationDatabaseLevelResult + { + /// + /// Initializes a new instance of the MigrationValidationDatabaseLevelResult class. + /// + public MigrationValidationDatabaseLevelResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrationValidationDatabaseLevelResult class. + /// + + /// Result identifier + /// + + /// Migration Identifier + /// + + /// Name of the source database + /// + + /// Name of the target database + /// + + /// Validation start time + /// + + /// Validation end time + /// + + /// Provides data integrity validation result between the source and target + /// tables that are migrated. + /// + + /// Provides schema comparison result between source and target database + /// + + /// Results of some of the query execution result between source and target + /// database + /// + + /// Current status of validation at the database level + /// Possible values include: 'Default', 'NotStarted', 'Initialized', + /// 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + public MigrationValidationDatabaseLevelResult(string id = default(string), string migrationId = default(string), string sourceDatabaseName = default(string), string targetDatabaseName = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), DataIntegrityValidationResult dataIntegrityValidationResult = default(DataIntegrityValidationResult), SchemaComparisonValidationResult schemaValidationResult = default(SchemaComparisonValidationResult), QueryAnalysisValidationResult queryAnalysisValidationResult = default(QueryAnalysisValidationResult), string status = default(string)) + + { + this.Id = id; + this.MigrationId = migrationId; + this.SourceDatabaseName = sourceDatabaseName; + this.TargetDatabaseName = targetDatabaseName; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.DataIntegrityValidationResult = dataIntegrityValidationResult; + this.SchemaValidationResult = schemaValidationResult; + this.QueryAnalysisValidationResult = queryAnalysisValidationResult; + this.Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets migration Identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationId")] + public string MigrationId {get; private set; } + + /// + /// Gets name of the source database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceDatabaseName")] + public string SourceDatabaseName {get; private set; } + + /// + /// Gets name of the target database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetDatabaseName")] + public string TargetDatabaseName {get; private set; } + + /// + /// Gets validation start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets validation end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets provides data integrity validation result between the source and + /// target tables that are migrated. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "dataIntegrityValidationResult")] + public DataIntegrityValidationResult DataIntegrityValidationResult {get; private set; } + + /// + /// Gets provides schema comparison result between source and target database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "schemaValidationResult")] + public SchemaComparisonValidationResult SchemaValidationResult {get; private set; } + + /// + /// Gets results of some of the query execution result between source and + /// target database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "queryAnalysisValidationResult")] + public QueryAnalysisValidationResult QueryAnalysisValidationResult {get; private set; } + + /// + /// Gets current status of validation at the database level Possible values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + public string Status {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationDatabaseSummaryResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationDatabaseSummaryResult.cs new file mode 100644 index 000000000000..446e201e5d8a --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationDatabaseSummaryResult.cs @@ -0,0 +1,109 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Migration Validation Database level summary result + /// + public partial class MigrationValidationDatabaseSummaryResult + { + /// + /// Initializes a new instance of the MigrationValidationDatabaseSummaryResult class. + /// + public MigrationValidationDatabaseSummaryResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrationValidationDatabaseSummaryResult class. + /// + + /// Result identifier + /// + + /// Migration Identifier + /// + + /// Name of the source database + /// + + /// Name of the target database + /// + + /// Validation start time + /// + + /// Validation end time + /// + + /// Current status of validation at the database level + /// Possible values include: 'Default', 'NotStarted', 'Initialized', + /// 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + public MigrationValidationDatabaseSummaryResult(string id = default(string), string migrationId = default(string), string sourceDatabaseName = default(string), string targetDatabaseName = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string status = default(string)) + + { + this.Id = id; + this.MigrationId = migrationId; + this.SourceDatabaseName = sourceDatabaseName; + this.TargetDatabaseName = targetDatabaseName; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets migration Identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationId")] + public string MigrationId {get; private set; } + + /// + /// Gets name of the source database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceDatabaseName")] + public string SourceDatabaseName {get; private set; } + + /// + /// Gets name of the target database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetDatabaseName")] + public string TargetDatabaseName {get; private set; } + + /// + /// Gets validation start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets validation end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets current status of validation at the database level Possible values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + public string Status {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationOptions.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationOptions.cs new file mode 100644 index 000000000000..cc4086dfcb3f --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationOptions.cs @@ -0,0 +1,77 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Types of validations to run after the migration + /// + public partial class MigrationValidationOptions + { + /// + /// Initializes a new instance of the MigrationValidationOptions class. + /// + public MigrationValidationOptions() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrationValidationOptions class. + /// + + /// Allows to compare the schema information between source and target. + /// + + /// Allows to perform a checksum based data integrity validation between source + /// and target for the selected database / tables . + /// + + /// Allows to perform a quick and intelligent query analysis by retrieving + /// queries from the source database and executes them in the target. The + /// result will have execution statistics for executions in source and target + /// databases for the extracted queries. + /// + public MigrationValidationOptions(bool? enableSchemaValidation = default(bool?), bool? enableDataIntegrityValidation = default(bool?), bool? enableQueryAnalysisValidation = default(bool?)) + + { + this.EnableSchemaValidation = enableSchemaValidation; + this.EnableDataIntegrityValidation = enableDataIntegrityValidation; + this.EnableQueryAnalysisValidation = enableQueryAnalysisValidation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets allows to compare the schema information between source and + /// target. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "enableSchemaValidation")] + public bool? EnableSchemaValidation {get; set; } + + /// + /// Gets or sets allows to perform a checksum based data integrity validation + /// between source and target for the selected database / tables . + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "enableDataIntegrityValidation")] + public bool? EnableDataIntegrityValidation {get; set; } + + /// + /// Gets or sets allows to perform a quick and intelligent query analysis by + /// retrieving queries from the source database and executes them in the + /// target. The result will have execution statistics for executions in source + /// and target databases for the extracted queries. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "enableQueryAnalysisValidation")] + public bool? EnableQueryAnalysisValidation {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationResult.cs new file mode 100644 index 000000000000..23068437c544 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MigrationValidationResult.cs @@ -0,0 +1,81 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Migration Validation Result + /// + public partial class MigrationValidationResult + { + /// + /// Initializes a new instance of the MigrationValidationResult class. + /// + public MigrationValidationResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigrationValidationResult class. + /// + + /// Migration validation result identifier + /// + + /// Migration Identifier + /// + + /// Validation summary results for each database + /// + + /// Current status of validation at the migration level. Status from the + /// database validation result status will be aggregated here. + /// Possible values include: 'Default', 'NotStarted', 'Initialized', + /// 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + public MigrationValidationResult(string id = default(string), string migrationId = default(string), System.Collections.Generic.IDictionary summaryResults = default(System.Collections.Generic.IDictionary), string status = default(string)) + + { + this.Id = id; + this.MigrationId = migrationId; + this.SummaryResults = summaryResults; + this.Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets migration validation result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets migration Identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "migrationId")] + public string MigrationId {get; private set; } + + /// + /// Gets or sets validation summary results for each database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "summaryResults")] + public System.Collections.Generic.IDictionary SummaryResults {get; set; } + + /// + /// Gets current status of validation at the migration level. Status from the + /// database validation result status will be aggregated here. Possible values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + public string Status {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCancelCommand.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCancelCommand.cs new file mode 100644 index 000000000000..8450d17c9d77 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCancelCommand.cs @@ -0,0 +1,57 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the command that cancels a migration in whole or in part + /// + [Newtonsoft.Json.JsonObject("cancel")] + public partial class MongoDbCancelCommand : CommandProperties + { + /// + /// Initializes a new instance of the MongoDbCancelCommand class. + /// + public MongoDbCancelCommand() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbCancelCommand class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the command. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + /// 'Failed' + + /// Command input + /// + public MongoDbCancelCommand(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), MongoDbCommandInput input = default(MongoDbCommandInput)) + + : base(errors, state) + { + this.Input = input; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets command input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MongoDbCommandInput Input {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbClusterInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbClusterInfo.cs new file mode 100644 index 000000000000..438fccc39a95 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbClusterInfo.cs @@ -0,0 +1,113 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes a MongoDB data source + /// + public partial class MongoDbClusterInfo + { + /// + /// Initializes a new instance of the MongoDbClusterInfo class. + /// + public MongoDbClusterInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbClusterInfo class. + /// + + /// A list of non-system databases in the cluster + /// + + /// Whether the cluster supports sharded collections + /// + + /// The type of data source + /// Possible values include: 'BlobContainer', 'CosmosDb', 'MongoDb' + + /// The version of the data source in the form x.y.z (e.g. 3.6.7). Not used if + /// Type is BlobContainer. + /// + public MongoDbClusterInfo(System.Collections.Generic.IList databases, bool supportsSharding, string type, string version) + + { + this.Databases = databases; + this.SupportsSharding = supportsSharding; + this.Type = type; + this.Version = version; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets a list of non-system databases in the cluster + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IList Databases {get; set; } + + /// + /// Gets or sets whether the cluster supports sharded collections + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "supportsSharding")] + public bool SupportsSharding {get; set; } + + /// + /// Gets or sets the type of data source Possible values include: 'BlobContainer', 'CosmosDb', 'MongoDb' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + public string Type {get; set; } + + /// + /// Gets or sets the version of the data source in the form x.y.z (e.g. 3.6.7). + /// Not used if Type is BlobContainer. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "version")] + public string Version {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Databases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Databases"); + } + if (this.Type == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Type"); + } + if (this.Version == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Version"); + } + if (this.Databases != null) + { + foreach (var element in this.Databases) + { + if (element != null) + { + element.Validate(); + } + } + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbClusterType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbClusterType.cs new file mode 100644 index 000000000000..78a60ad25aba --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbClusterType.cs @@ -0,0 +1,20 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for MongoDbClusterType. + /// + + + public static class MongoDbClusterType + { + public const string BlobContainer = "BlobContainer"; + public const string CosmosDb = "CosmosDb"; + public const string MongoDb = "MongoDb"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCollectionInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCollectionInfo.cs new file mode 100644 index 000000000000..ca1933930b79 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCollectionInfo.cs @@ -0,0 +1,152 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes a supported collection within a MongoDB database + /// + public partial class MongoDbCollectionInfo : MongoDbObjectInfo + { + /// + /// Initializes a new instance of the MongoDbCollectionInfo class. + /// + public MongoDbCollectionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbCollectionInfo class. + /// + + /// The average document size, or -1 if the average size is unknown + /// + + /// The estimated total data size, in bytes, or -1 if the size is unknown. + /// + + /// The estimated total number of documents, or -1 if the document count is + /// unknown + /// + + /// The unqualified name of the database or collection + /// + + /// The qualified name of the database or collection. For a collection, this is + /// the database-qualified name. + /// + + /// The name of the database containing the collection + /// + + /// Whether the collection is a capped collection (i.e. whether it has a fixed + /// size and acts like a circular buffer) + /// + + /// Whether the collection is system collection + /// + + /// Whether the collection is a view of another collection + /// + + /// The shard key on the collection, or null if the collection is not sharded + /// + + /// Whether the database has sharding enabled. Note that the migration task + /// will enable sharding on the target if necessary. + /// + + /// The name of the collection that this is a view of, if IsView is true + /// + public MongoDbCollectionInfo(long averageDocumentSize, long dataSize, long documentCount, string name, string qualifiedName, string databaseName, bool isCapped, bool isSystemCollection, bool isView, bool supportsSharding, MongoDbShardKeyInfo shardKey = default(MongoDbShardKeyInfo), string viewOf = default(string)) + + : base(averageDocumentSize, dataSize, documentCount, name, qualifiedName) + { + this.DatabaseName = databaseName; + this.IsCapped = isCapped; + this.IsSystemCollection = isSystemCollection; + this.IsView = isView; + this.ShardKey = shardKey; + this.SupportsSharding = supportsSharding; + this.ViewOf = viewOf; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the name of the database containing the collection + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; set; } + + /// + /// Gets or sets whether the collection is a capped collection (i.e. whether it + /// has a fixed size and acts like a circular buffer) + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isCapped")] + public bool IsCapped {get; set; } + + /// + /// Gets or sets whether the collection is system collection + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isSystemCollection")] + public bool IsSystemCollection {get; set; } + + /// + /// Gets or sets whether the collection is a view of another collection + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isView")] + public bool IsView {get; set; } + + /// + /// Gets or sets the shard key on the collection, or null if the collection is + /// not sharded + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "shardKey")] + public MongoDbShardKeyInfo ShardKey {get; set; } + + /// + /// Gets or sets whether the database has sharding enabled. Note that the + /// migration task will enable sharding on the target if necessary. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "supportsSharding")] + public bool SupportsSharding {get; set; } + + /// + /// Gets or sets the name of the collection that this is a view of, if IsView + /// is true + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "viewOf")] + public string ViewOf {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (this.DatabaseName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "DatabaseName"); + } + + if (this.ShardKey != null) + { + this.ShardKey.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCollectionProgress.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCollectionProgress.cs new file mode 100644 index 000000000000..ec2e786b1838 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCollectionProgress.cs @@ -0,0 +1,101 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes the progress of a collection + /// + [Newtonsoft.Json.JsonObject("Collection")] + public partial class MongoDbCollectionProgress : MongoDbProgress + { + /// + /// Initializes a new instance of the MongoDbCollectionProgress class. + /// + public MongoDbCollectionProgress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbCollectionProgress class. + /// + + /// The number of document bytes copied during the Copying stage + /// + + /// The number of documents copied during the Copying stage + /// + + /// The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan + /// format) + /// + + /// The errors and warnings that have occurred for the current object. The keys + /// are the error codes. + /// + + /// The number of oplog events awaiting replay + /// + + /// The number of oplog events replayed so far + /// + + /// The timestamp of the last oplog event received, or null if no oplog event + /// has been received yet + /// + + /// The timestamp of the last oplog event replayed, or null if no oplog event + /// has been replayed yet + /// + + /// The name of the progress object. For a collection, this is the unqualified + /// collection name. For a database, this is the database name. For the overall + /// migration, this is null. + /// + + /// The qualified name of the progress object. For a collection, this is the + /// database-qualified name. For a database, this is the database name. For the + /// overall migration, this is null. + /// + + /// + /// Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', + /// 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', + /// 'Complete', 'Canceled', 'Failed' + + /// The total number of document bytes on the source at the beginning of the + /// Copying stage, or -1 if the total size was unknown + /// + + /// The total number of documents on the source at the beginning of the Copying + /// stage, or -1 if the total count was unknown + /// + public MongoDbCollectionProgress(long bytesCopied, long documentsCopied, string elapsedTime, System.Collections.Generic.IDictionary errors, long eventsPending, long eventsReplayed, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string)) + + : base(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, state, totalBytes, totalDocuments, lastEventTime, lastReplayTime, name, qualifiedName) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCollectionSettings.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCollectionSettings.cs new file mode 100644 index 000000000000..816d18f34226 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCollectionSettings.cs @@ -0,0 +1,85 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes how an individual MongoDB collection should be migrated + /// + public partial class MongoDbCollectionSettings + { + /// + /// Initializes a new instance of the MongoDbCollectionSettings class. + /// + public MongoDbCollectionSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbCollectionSettings class. + /// + + /// Whether the migrator is allowed to drop the target collection in the course + /// of performing a migration. The default is true. + /// + + /// Describes a MongoDB shard key + /// + + /// The RUs that should be configured on a CosmosDB target, or null to use the + /// default. This has no effect on non-CosmosDB targets. + /// + public MongoDbCollectionSettings(bool? canDelete = default(bool?), MongoDbShardKeySetting shardKey = default(MongoDbShardKeySetting), int? targetRUs = default(int?)) + + { + this.CanDelete = canDelete; + this.ShardKey = shardKey; + this.TargetRUs = targetRUs; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets whether the migrator is allowed to drop the target collection + /// in the course of performing a migration. The default is true. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "canDelete")] + public bool? CanDelete {get; set; } + + /// + /// Gets or sets describes a MongoDB shard key + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "shardKey")] + public MongoDbShardKeySetting ShardKey {get; set; } + + /// + /// Gets or sets the RUs that should be configured on a CosmosDB target, or + /// null to use the default. This has no effect on non-CosmosDB targets. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetRUs")] + public int? TargetRUs {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.ShardKey != null) + { + this.ShardKey.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCommandInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCommandInput.cs new file mode 100644 index 000000000000..6d8157571142 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbCommandInput.cs @@ -0,0 +1,51 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes the input to the 'cancel' and 'restart' MongoDB migration + /// commands + /// + public partial class MongoDbCommandInput + { + /// + /// Initializes a new instance of the MongoDbCommandInput class. + /// + public MongoDbCommandInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbCommandInput class. + /// + + /// The qualified name of a database or collection to act upon, or null to act + /// upon the entire migration + /// + public MongoDbCommandInput(string objectName = default(string)) + + { + this.ObjectName = objectName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the qualified name of a database or collection to act upon, or + /// null to act upon the entire migration + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "objectName")] + public string ObjectName {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbConnectionInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbConnectionInfo.cs new file mode 100644 index 000000000000..2b525631acef --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbConnectionInfo.cs @@ -0,0 +1,73 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes a connection to a MongoDB data source + /// + [Newtonsoft.Json.JsonObject("MongoDbConnectionInfo")] + public partial class MongoDbConnectionInfo : ConnectionInfo + { + /// + /// Initializes a new instance of the MongoDbConnectionInfo class. + /// + public MongoDbConnectionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbConnectionInfo class. + /// + + /// User name + /// + + /// Password credential. + /// + + /// A MongoDB connection string or blob container URL. The user name and + /// password can be specified here or in the userName and password properties + /// + public MongoDbConnectionInfo(string connectionString, string userName = default(string), string password = default(string)) + + : base(userName, password) + { + this.ConnectionString = connectionString; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets a MongoDB connection string or blob container URL. The user + /// name and password can be specified here or in the userName and password + /// properties + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "connectionString")] + public string ConnectionString {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.ConnectionString == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ConnectionString"); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbDatabaseInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbDatabaseInfo.cs new file mode 100644 index 000000000000..d083ac165e87 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbDatabaseInfo.cs @@ -0,0 +1,102 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes a database within a MongoDB data source + /// + public partial class MongoDbDatabaseInfo : MongoDbObjectInfo + { + /// + /// Initializes a new instance of the MongoDbDatabaseInfo class. + /// + public MongoDbDatabaseInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbDatabaseInfo class. + /// + + /// The average document size, or -1 if the average size is unknown + /// + + /// The estimated total data size, in bytes, or -1 if the size is unknown. + /// + + /// The estimated total number of documents, or -1 if the document count is + /// unknown + /// + + /// The unqualified name of the database or collection + /// + + /// The qualified name of the database or collection. For a collection, this is + /// the database-qualified name. + /// + + /// A list of supported collections in a MongoDB database + /// + + /// Whether the database has sharding enabled. Note that the migration task + /// will enable sharding on the target if necessary. + /// + public MongoDbDatabaseInfo(long averageDocumentSize, long dataSize, long documentCount, string name, string qualifiedName, System.Collections.Generic.IList collections, bool supportsSharding) + + : base(averageDocumentSize, dataSize, documentCount, name, qualifiedName) + { + this.Collections = collections; + this.SupportsSharding = supportsSharding; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets a list of supported collections in a MongoDB database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "collections")] + public System.Collections.Generic.IList Collections {get; set; } + + /// + /// Gets or sets whether the database has sharding enabled. Note that the + /// migration task will enable sharding on the target if necessary. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "supportsSharding")] + public bool SupportsSharding {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (this.Collections == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Collections"); + } + if (this.Collections != null) + { + foreach (var element in this.Collections) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbDatabaseProgress.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbDatabaseProgress.cs new file mode 100644 index 000000000000..e63742d7fcdb --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbDatabaseProgress.cs @@ -0,0 +1,123 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes the progress of a database + /// + [Newtonsoft.Json.JsonObject("Database")] + public partial class MongoDbDatabaseProgress : MongoDbProgress + { + /// + /// Initializes a new instance of the MongoDbDatabaseProgress class. + /// + public MongoDbDatabaseProgress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbDatabaseProgress class. + /// + + /// The number of document bytes copied during the Copying stage + /// + + /// The number of documents copied during the Copying stage + /// + + /// The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan + /// format) + /// + + /// The errors and warnings that have occurred for the current object. The keys + /// are the error codes. + /// + + /// The number of oplog events awaiting replay + /// + + /// The number of oplog events replayed so far + /// + + /// The timestamp of the last oplog event received, or null if no oplog event + /// has been received yet + /// + + /// The timestamp of the last oplog event replayed, or null if no oplog event + /// has been replayed yet + /// + + /// The name of the progress object. For a collection, this is the unqualified + /// collection name. For a database, this is the database name. For the overall + /// migration, this is null. + /// + + /// The qualified name of the progress object. For a collection, this is the + /// database-qualified name. For a database, this is the database name. For the + /// overall migration, this is null. + /// + + /// + /// Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', + /// 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', + /// 'Complete', 'Canceled', 'Failed' + + /// The total number of document bytes on the source at the beginning of the + /// Copying stage, or -1 if the total size was unknown + /// + + /// The total number of documents on the source at the beginning of the Copying + /// stage, or -1 if the total count was unknown + /// + + /// The progress of the collections in the database. The keys are the + /// unqualified names of the collections + /// + public MongoDbDatabaseProgress(long bytesCopied, long documentsCopied, string elapsedTime, System.Collections.Generic.IDictionary errors, long eventsPending, long eventsReplayed, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string), System.Collections.Generic.IDictionary collections = default(System.Collections.Generic.IDictionary)) + + : base(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, state, totalBytes, totalDocuments, lastEventTime, lastReplayTime, name, qualifiedName) + { + this.Collections = collections; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the progress of the collections in the database. The keys are + /// the unqualified names of the collections + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "collections")] + public System.Collections.Generic.IDictionary Collections {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (this.Collections != null) + { + foreach (var valueElement in this.Collections.Values) + { + if (valueElement != null) + { + valueElement.Validate(); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbDatabaseSettings.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbDatabaseSettings.cs new file mode 100644 index 000000000000..955d7c1c9305 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbDatabaseSettings.cs @@ -0,0 +1,87 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes how an individual MongoDB database should be migrated + /// + public partial class MongoDbDatabaseSettings + { + /// + /// Initializes a new instance of the MongoDbDatabaseSettings class. + /// + public MongoDbDatabaseSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbDatabaseSettings class. + /// + + /// The collections on the source database to migrate to the target. The keys + /// are the unqualified names of the collections. + /// + + /// The RUs that should be configured on a CosmosDB target, or null to use the + /// default, or 0 if throughput should not be provisioned for the database. + /// This has no effect on non-CosmosDB targets. + /// + public MongoDbDatabaseSettings(System.Collections.Generic.IDictionary collections, int? targetRUs = default(int?)) + + { + this.Collections = collections; + this.TargetRUs = targetRUs; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the collections on the source database to migrate to the + /// target. The keys are the unqualified names of the collections. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "collections")] + public System.Collections.Generic.IDictionary Collections {get; set; } + + /// + /// Gets or sets the RUs that should be configured on a CosmosDB target, or + /// null to use the default, or 0 if throughput should not be provisioned for + /// the database. This has no effect on non-CosmosDB targets. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetRUs")] + public int? TargetRUs {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Collections == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Collections"); + } + if (this.Collections != null) + { + foreach (var valueElement in this.Collections.Values) + { + if (valueElement != null) + { + valueElement.Validate(); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbError.cs new file mode 100644 index 000000000000..7f57f8c5e9de --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbError.cs @@ -0,0 +1,81 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes an error or warning that occurred during a MongoDB migration + /// + public partial class MongoDbError + { + /// + /// Initializes a new instance of the MongoDbError class. + /// + public MongoDbError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbError class. + /// + + /// The non-localized, machine-readable code that describes the error or + /// warning + /// + + /// The number of times the error or warning has occurred + /// + + /// The localized, human-readable message that describes the error or warning + /// + + /// The type of error or warning + /// Possible values include: 'Error', 'ValidationError', 'Warning' + public MongoDbError(string code = default(string), int? count = default(int?), string message = default(string), string type = default(string)) + + { + this.Code = code; + this.Count = count; + this.Message = message; + this.Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the non-localized, machine-readable code that describes the + /// error or warning + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + public string Code {get; set; } + + /// + /// Gets or sets the number of times the error or warning has occurred + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "count")] + public int? Count {get; set; } + + /// + /// Gets or sets the localized, human-readable message that describes the error + /// or warning + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; set; } + + /// + /// Gets or sets the type of error or warning Possible values include: 'Error', 'ValidationError', 'Warning' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + public string Type {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbErrorType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbErrorType.cs new file mode 100644 index 000000000000..775469f720b2 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbErrorType.cs @@ -0,0 +1,20 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for MongoDbErrorType. + /// + + + public static class MongoDbErrorType + { + public const string Error = "Error"; + public const string ValidationError = "ValidationError"; + public const string Warning = "Warning"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbFinishCommand.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbFinishCommand.cs new file mode 100644 index 000000000000..a15850681119 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbFinishCommand.cs @@ -0,0 +1,70 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the command that finishes a migration in whole or in part + /// + [Newtonsoft.Json.JsonObject("finish")] + public partial class MongoDbFinishCommand : CommandProperties + { + /// + /// Initializes a new instance of the MongoDbFinishCommand class. + /// + public MongoDbFinishCommand() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbFinishCommand class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the command. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + /// 'Failed' + + /// Command input + /// + public MongoDbFinishCommand(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), MongoDbFinishCommandInput input = default(MongoDbFinishCommandInput)) + + : base(errors, state) + { + this.Input = input; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets command input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MongoDbFinishCommandInput Input {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbFinishCommandInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbFinishCommandInput.cs new file mode 100644 index 000000000000..8608a7428bff --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbFinishCommandInput.cs @@ -0,0 +1,67 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes the input to the 'finish' MongoDB migration command + /// + public partial class MongoDbFinishCommandInput : MongoDbCommandInput + { + /// + /// Initializes a new instance of the MongoDbFinishCommandInput class. + /// + public MongoDbFinishCommandInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbFinishCommandInput class. + /// + + /// The qualified name of a database or collection to act upon, or null to act + /// upon the entire migration + /// + + /// If true, replication for the affected objects will be stopped immediately. + /// If false, the migrator will finish replaying queued events before finishing + /// the replication. + /// + public MongoDbFinishCommandInput(bool immediate, string objectName = default(string)) + + : base(objectName) + { + this.Immediate = immediate; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets if true, replication for the affected objects will be stopped + /// immediately. If false, the migrator will finish replaying queued events + /// before finishing the replication. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "immediate")] + public bool Immediate {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbMigrationProgress.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbMigrationProgress.cs new file mode 100644 index 000000000000..d73608f1fb30 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbMigrationProgress.cs @@ -0,0 +1,123 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes the progress of the overall migration + /// + [Newtonsoft.Json.JsonObject("Migration")] + public partial class MongoDbMigrationProgress : MongoDbProgress + { + /// + /// Initializes a new instance of the MongoDbMigrationProgress class. + /// + public MongoDbMigrationProgress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbMigrationProgress class. + /// + + /// The number of document bytes copied during the Copying stage + /// + + /// The number of documents copied during the Copying stage + /// + + /// The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan + /// format) + /// + + /// The errors and warnings that have occurred for the current object. The keys + /// are the error codes. + /// + + /// The number of oplog events awaiting replay + /// + + /// The number of oplog events replayed so far + /// + + /// The timestamp of the last oplog event received, or null if no oplog event + /// has been received yet + /// + + /// The timestamp of the last oplog event replayed, or null if no oplog event + /// has been replayed yet + /// + + /// The name of the progress object. For a collection, this is the unqualified + /// collection name. For a database, this is the database name. For the overall + /// migration, this is null. + /// + + /// The qualified name of the progress object. For a collection, this is the + /// database-qualified name. For a database, this is the database name. For the + /// overall migration, this is null. + /// + + /// + /// Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', + /// 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', + /// 'Complete', 'Canceled', 'Failed' + + /// The total number of document bytes on the source at the beginning of the + /// Copying stage, or -1 if the total size was unknown + /// + + /// The total number of documents on the source at the beginning of the Copying + /// stage, or -1 if the total count was unknown + /// + + /// The progress of the databases in the migration. The keys are the names of + /// the databases + /// + public MongoDbMigrationProgress(long bytesCopied, long documentsCopied, string elapsedTime, System.Collections.Generic.IDictionary errors, long eventsPending, long eventsReplayed, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string), System.Collections.Generic.IDictionary databases = default(System.Collections.Generic.IDictionary)) + + : base(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, state, totalBytes, totalDocuments, lastEventTime, lastReplayTime, name, qualifiedName) + { + this.Databases = databases; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the progress of the databases in the migration. The keys are + /// the names of the databases + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IDictionary Databases {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (this.Databases != null) + { + foreach (var valueElement in this.Databases.Values) + { + if (valueElement != null) + { + valueElement.Validate(); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbMigrationSettings.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbMigrationSettings.cs new file mode 100644 index 000000000000..d3a65c1b5cd1 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbMigrationSettings.cs @@ -0,0 +1,151 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes how a MongoDB data migration should be performed + /// + public partial class MongoDbMigrationSettings + { + /// + /// Initializes a new instance of the MongoDbMigrationSettings class. + /// + public MongoDbMigrationSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbMigrationSettings class. + /// + + /// The RU limit on a CosmosDB target that collections will be temporarily + /// increased to (if lower) during the initial copy of a migration, from 10,000 + /// to 1,000,000, or 0 to use the default boost (which is generally the + /// maximum), or null to not boost the RUs. This setting has no effect on + /// non-CosmosDB targets. + /// + + /// The databases on the source cluster to migrate to the target. The keys are + /// the names of the databases. + /// + + /// Describes how changes will be replicated from the source to the target. The + /// default is OneTime. + /// Possible values include: 'Disabled', 'OneTime', 'Continuous' + + /// Settings used to connect to the source cluster + /// + + /// Settings used to connect to the target cluster + /// + + /// Settings used to limit the resource usage of the migration + /// + public MongoDbMigrationSettings(System.Collections.Generic.IDictionary databases, MongoDbConnectionInfo source, MongoDbConnectionInfo target, int? boostRUs = default(int?), string replication = default(string), MongoDbThrottlingSettings throttling = default(MongoDbThrottlingSettings)) + + { + this.BoostRUs = boostRUs; + this.Databases = databases; + this.Replication = replication; + this.Source = source; + this.Target = target; + this.Throttling = throttling; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the RU limit on a CosmosDB target that collections will be + /// temporarily increased to (if lower) during the initial copy of a migration, + /// from 10,000 to 1,000,000, or 0 to use the default boost (which is generally + /// the maximum), or null to not boost the RUs. This setting has no effect on + /// non-CosmosDB targets. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "boostRUs")] + public int? BoostRUs {get; set; } + + /// + /// Gets or sets the databases on the source cluster to migrate to the target. + /// The keys are the names of the databases. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databases")] + public System.Collections.Generic.IDictionary Databases {get; set; } + + /// + /// Gets or sets describes how changes will be replicated from the source to + /// the target. The default is OneTime. Possible values include: 'Disabled', 'OneTime', 'Continuous' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "replication")] + public string Replication {get; set; } + + /// + /// Gets or sets settings used to connect to the source cluster + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "source")] + public MongoDbConnectionInfo Source {get; set; } + + /// + /// Gets or sets settings used to connect to the target cluster + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "target")] + public MongoDbConnectionInfo Target {get; set; } + + /// + /// Gets or sets settings used to limit the resource usage of the migration + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "throttling")] + public MongoDbThrottlingSettings Throttling {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Databases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Databases"); + } + if (this.Source == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Source"); + } + if (this.Target == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Target"); + } + if (this.Databases != null) + { + foreach (var valueElement in this.Databases.Values) + { + if (valueElement != null) + { + valueElement.Validate(); + } + } + } + + if (this.Source != null) + { + this.Source.Validate(); + } + if (this.Target != null) + { + this.Target.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbMigrationState.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbMigrationState.cs new file mode 100644 index 000000000000..49c338aeadd5 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbMigrationState.cs @@ -0,0 +1,28 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for MongoDbMigrationState. + /// + + + public static class MongoDbMigrationState + { + public const string NotStarted = "NotStarted"; + public const string ValidatingInput = "ValidatingInput"; + public const string Initializing = "Initializing"; + public const string Restarting = "Restarting"; + public const string Copying = "Copying"; + public const string InitialReplay = "InitialReplay"; + public const string Replaying = "Replaying"; + public const string Finalizing = "Finalizing"; + public const string Complete = "Complete"; + public const string Canceled = "Canceled"; + public const string Failed = "Failed"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbObjectInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbObjectInfo.cs new file mode 100644 index 000000000000..601a143f47c4 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbObjectInfo.cs @@ -0,0 +1,113 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes a database or collection within a MongoDB data source + /// + public partial class MongoDbObjectInfo + { + /// + /// Initializes a new instance of the MongoDbObjectInfo class. + /// + public MongoDbObjectInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbObjectInfo class. + /// + + /// The average document size, or -1 if the average size is unknown + /// + + /// The estimated total data size, in bytes, or -1 if the size is unknown. + /// + + /// The estimated total number of documents, or -1 if the document count is + /// unknown + /// + + /// The unqualified name of the database or collection + /// + + /// The qualified name of the database or collection. For a collection, this is + /// the database-qualified name. + /// + public MongoDbObjectInfo(long averageDocumentSize, long dataSize, long documentCount, string name, string qualifiedName) + + { + this.AverageDocumentSize = averageDocumentSize; + this.DataSize = dataSize; + this.DocumentCount = documentCount; + this.Name = name; + this.QualifiedName = qualifiedName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the average document size, or -1 if the average size is + /// unknown + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "averageDocumentSize")] + public long AverageDocumentSize {get; set; } + + /// + /// Gets or sets the estimated total data size, in bytes, or -1 if the size is + /// unknown. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "dataSize")] + public long DataSize {get; set; } + + /// + /// Gets or sets the estimated total number of documents, or -1 if the document + /// count is unknown + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "documentCount")] + public long DocumentCount {get; set; } + + /// + /// Gets or sets the unqualified name of the database or collection + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets the qualified name of the database or collection. For a + /// collection, this is the database-qualified name. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "qualifiedName")] + public string QualifiedName {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Name == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); + } + if (this.QualifiedName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "QualifiedName"); + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbProgress.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbProgress.cs new file mode 100644 index 000000000000..b81963006c1b --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbProgress.cs @@ -0,0 +1,217 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Base class for MongoDB migration outputs + /// + [Newtonsoft.Json.JsonObject("MongoDbProgress")] + public partial class MongoDbProgress + { + /// + /// Initializes a new instance of the MongoDbProgress class. + /// + public MongoDbProgress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbProgress class. + /// + + /// The number of document bytes copied during the Copying stage + /// + + /// The number of documents copied during the Copying stage + /// + + /// The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan + /// format) + /// + + /// The errors and warnings that have occurred for the current object. The keys + /// are the error codes. + /// + + /// The number of oplog events awaiting replay + /// + + /// The number of oplog events replayed so far + /// + + /// The timestamp of the last oplog event received, or null if no oplog event + /// has been received yet + /// + + /// The timestamp of the last oplog event replayed, or null if no oplog event + /// has been replayed yet + /// + + /// The name of the progress object. For a collection, this is the unqualified + /// collection name. For a database, this is the database name. For the overall + /// migration, this is null. + /// + + /// The qualified name of the progress object. For a collection, this is the + /// database-qualified name. For a database, this is the database name. For the + /// overall migration, this is null. + /// + + /// + /// Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', + /// 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', + /// 'Complete', 'Canceled', 'Failed' + + /// The total number of document bytes on the source at the beginning of the + /// Copying stage, or -1 if the total size was unknown + /// + + /// The total number of documents on the source at the beginning of the Copying + /// stage, or -1 if the total count was unknown + /// + public MongoDbProgress(long bytesCopied, long documentsCopied, string elapsedTime, System.Collections.Generic.IDictionary errors, long eventsPending, long eventsReplayed, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string)) + + { + this.BytesCopied = bytesCopied; + this.DocumentsCopied = documentsCopied; + this.ElapsedTime = elapsedTime; + this.Errors = errors; + this.EventsPending = eventsPending; + this.EventsReplayed = eventsReplayed; + this.LastEventTime = lastEventTime; + this.LastReplayTime = lastReplayTime; + this.Name = name; + this.QualifiedName = qualifiedName; + this.State = state; + this.TotalBytes = totalBytes; + this.TotalDocuments = totalDocuments; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the number of document bytes copied during the Copying stage + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "bytesCopied")] + public long BytesCopied {get; set; } + + /// + /// Gets or sets the number of documents copied during the Copying stage + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "documentsCopied")] + public long DocumentsCopied {get; set; } + + /// + /// Gets or sets the elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. + /// TimeSpan format) + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "elapsedTime")] + public string ElapsedTime {get; set; } + + /// + /// Gets or sets the errors and warnings that have occurred for the current + /// object. The keys are the error codes. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errors")] + public System.Collections.Generic.IDictionary Errors {get; set; } + + /// + /// Gets or sets the number of oplog events awaiting replay + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "eventsPending")] + public long EventsPending {get; set; } + + /// + /// Gets or sets the number of oplog events replayed so far + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "eventsReplayed")] + public long EventsReplayed {get; set; } + + /// + /// Gets or sets the timestamp of the last oplog event received, or null if no + /// oplog event has been received yet + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lastEventTime")] + public System.DateTimeOffset? LastEventTime {get; set; } + + /// + /// Gets or sets the timestamp of the last oplog event replayed, or null if no + /// oplog event has been replayed yet + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lastReplayTime")] + public System.DateTimeOffset? LastReplayTime {get; set; } + + /// + /// Gets or sets the name of the progress object. For a collection, this is the + /// unqualified collection name. For a database, this is the database name. For + /// the overall migration, this is null. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets the qualified name of the progress object. For a collection, + /// this is the database-qualified name. For a database, this is the database + /// name. For the overall migration, this is null. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "qualifiedName")] + public string QualifiedName {get; set; } + + /// + /// Gets or sets Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; set; } + + /// + /// Gets or sets the total number of document bytes on the source at the + /// beginning of the Copying stage, or -1 if the total size was unknown + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "totalBytes")] + public long TotalBytes {get; set; } + + /// + /// Gets or sets the total number of documents on the source at the beginning + /// of the Copying stage, or -1 if the total count was unknown + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "totalDocuments")] + public long TotalDocuments {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.ElapsedTime == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ElapsedTime"); + } + if (this.Errors == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Errors"); + } + if (this.State == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "State"); + } + + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbReplication.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbReplication.cs new file mode 100644 index 000000000000..cf86b5f42fd2 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbReplication.cs @@ -0,0 +1,20 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for MongoDbReplication. + /// + + + public static class MongoDbReplication + { + public const string Disabled = "Disabled"; + public const string OneTime = "OneTime"; + public const string Continuous = "Continuous"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbRestartCommand.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbRestartCommand.cs new file mode 100644 index 000000000000..5e145208a5a5 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbRestartCommand.cs @@ -0,0 +1,57 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the command that restarts a migration in whole or in part + /// + [Newtonsoft.Json.JsonObject("restart")] + public partial class MongoDbRestartCommand : CommandProperties + { + /// + /// Initializes a new instance of the MongoDbRestartCommand class. + /// + public MongoDbRestartCommand() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbRestartCommand class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the command. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + /// 'Failed' + + /// Command input + /// + public MongoDbRestartCommand(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), MongoDbCommandInput input = default(MongoDbCommandInput)) + + : base(errors, state) + { + this.Input = input; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets command input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MongoDbCommandInput Input {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeyField.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeyField.cs new file mode 100644 index 000000000000..377f4e71e20f --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeyField.cs @@ -0,0 +1,77 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes a field reference within a MongoDB shard key + /// + public partial class MongoDbShardKeyField + { + /// + /// Initializes a new instance of the MongoDbShardKeyField class. + /// + public MongoDbShardKeyField() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbShardKeyField class. + /// + + /// The name of the field + /// + + /// The field ordering + /// Possible values include: 'Forward', 'Reverse', 'Hashed' + public MongoDbShardKeyField(string name, string order) + + { + this.Name = name; + this.Order = order; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the name of the field + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets the field ordering Possible values include: 'Forward', 'Reverse', 'Hashed' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "order")] + public string Order {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Name == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); + } + if (this.Order == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Order"); + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeyInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeyInfo.cs new file mode 100644 index 000000000000..5da696f28a4e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeyInfo.cs @@ -0,0 +1,81 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes a MongoDB shard key + /// + public partial class MongoDbShardKeyInfo + { + /// + /// Initializes a new instance of the MongoDbShardKeyInfo class. + /// + public MongoDbShardKeyInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbShardKeyInfo class. + /// + + /// The fields within the shard key + /// + + /// Whether the shard key is unique + /// + public MongoDbShardKeyInfo(System.Collections.Generic.IList fields, bool isUnique) + + { + this.Fields = fields; + this.IsUnique = isUnique; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the fields within the shard key + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fields")] + public System.Collections.Generic.IList Fields {get; set; } + + /// + /// Gets or sets whether the shard key is unique + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isUnique")] + public bool IsUnique {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Fields == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Fields"); + } + if (this.Fields != null) + { + foreach (var element in this.Fields) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeyOrder.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeyOrder.cs new file mode 100644 index 000000000000..4da5937a629c --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeyOrder.cs @@ -0,0 +1,20 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for MongoDbShardKeyOrder. + /// + + + public static class MongoDbShardKeyOrder + { + public const string Forward = "Forward"; + public const string Reverse = "Reverse"; + public const string Hashed = "Hashed"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeySetting.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeySetting.cs new file mode 100644 index 000000000000..c5959b8f9b89 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbShardKeySetting.cs @@ -0,0 +1,81 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes a MongoDB shard key + /// + public partial class MongoDbShardKeySetting + { + /// + /// Initializes a new instance of the MongoDbShardKeySetting class. + /// + public MongoDbShardKeySetting() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbShardKeySetting class. + /// + + /// The fields within the shard key + /// + + /// Whether the shard key is unique + /// + public MongoDbShardKeySetting(System.Collections.Generic.IList fields, bool isUnique) + + { + this.Fields = fields; + this.IsUnique = isUnique; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the fields within the shard key + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fields")] + public System.Collections.Generic.IList Fields {get; set; } + + /// + /// Gets or sets whether the shard key is unique + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "isUnique")] + public bool IsUnique {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Fields == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Fields"); + } + if (this.Fields != null) + { + foreach (var element in this.Fields) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbThrottlingSettings.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbThrottlingSettings.cs new file mode 100644 index 000000000000..ec3a35e4e9f0 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MongoDbThrottlingSettings.cs @@ -0,0 +1,73 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Specifies resource limits for the migration + /// + public partial class MongoDbThrottlingSettings + { + /// + /// Initializes a new instance of the MongoDbThrottlingSettings class. + /// + public MongoDbThrottlingSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MongoDbThrottlingSettings class. + /// + + /// The percentage of CPU time that the migrator will try to avoid using, from + /// 0 to 100 + /// + + /// The number of megabytes of RAM that the migrator will try to avoid using + /// + + /// The maximum number of work items (e.g. collection copies) that will be + /// processed in parallel + /// + public MongoDbThrottlingSettings(int? minFreeCpu = default(int?), int? minFreeMemoryMb = default(int?), int? maxParallelism = default(int?)) + + { + this.MinFreeCpu = minFreeCpu; + this.MinFreeMemoryMb = minFreeMemoryMb; + this.MaxParallelism = maxParallelism; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the percentage of CPU time that the migrator will try to avoid + /// using, from 0 to 100 + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "minFreeCpu")] + public int? MinFreeCpu {get; set; } + + /// + /// Gets or sets the number of megabytes of RAM that the migrator will try to + /// avoid using + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "minFreeMemoryMb")] + public int? MinFreeMemoryMb {get; set; } + + /// + /// Gets or sets the maximum number of work items (e.g. collection copies) that + /// will be processed in parallel + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "maxParallelism")] + public int? MaxParallelism {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MySqlConnectionInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MySqlConnectionInfo.cs new file mode 100644 index 000000000000..7c1947852315 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MySqlConnectionInfo.cs @@ -0,0 +1,80 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Information for connecting to MySQL server + /// + [Newtonsoft.Json.JsonObject("MySqlConnectionInfo")] + public partial class MySqlConnectionInfo : ConnectionInfo + { + /// + /// Initializes a new instance of the MySqlConnectionInfo class. + /// + public MySqlConnectionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MySqlConnectionInfo class. + /// + + /// User name + /// + + /// Password credential. + /// + + /// Name of the server + /// + + /// Port for Server + /// + public MySqlConnectionInfo(string serverName, int port, string userName = default(string), string password = default(string)) + + : base(userName, password) + { + this.ServerName = serverName; + this.Port = port; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverName")] + public string ServerName {get; set; } + + /// + /// Gets or sets port for Server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "port")] + public int Port {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.ServerName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ServerName"); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MySqlTargetPlatformType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MySqlTargetPlatformType.cs new file mode 100644 index 000000000000..30b33ed40366 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/MySqlTargetPlatformType.cs @@ -0,0 +1,19 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for MySqlTargetPlatformType. + /// + + + public static class MySqlTargetPlatformType + { + public const string SqlServer = "SqlServer"; + public const string AzureDbForMySQL = "AzureDbForMySQL"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NameAvailabilityRequest.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NameAvailabilityRequest.cs new file mode 100644 index 000000000000..6329264b933c --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NameAvailabilityRequest.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// A resource type and proposed name + /// + public partial class NameAvailabilityRequest + { + /// + /// Initializes a new instance of the NameAvailabilityRequest class. + /// + public NameAvailabilityRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NameAvailabilityRequest class. + /// + + /// The proposed resource name + /// + + /// The resource type chain (e.g. virtualMachines/extensions) + /// + public NameAvailabilityRequest(string name = default(string), string type = default(string)) + + { + this.Name = name; + this.Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the proposed resource name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets the resource type chain (e.g. virtualMachines/extensions) + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + public string Type {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NameAvailabilityResponse.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NameAvailabilityResponse.cs new file mode 100644 index 000000000000..880d8d3521d5 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NameAvailabilityResponse.cs @@ -0,0 +1,73 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Indicates whether a proposed resource name is available + /// + public partial class NameAvailabilityResponse + { + /// + /// Initializes a new instance of the NameAvailabilityResponse class. + /// + public NameAvailabilityResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NameAvailabilityResponse class. + /// + + /// If true, the name is valid and available. If false, 'reason' describes why + /// not. + /// + + /// The reason why the name is not available, if nameAvailable is false + /// Possible values include: 'AlreadyExists', 'Invalid' + + /// The localized reason why the name is not available, if nameAvailable is + /// false + /// + public NameAvailabilityResponse(bool? nameAvailable = default(bool?), string reason = default(string), string message = default(string)) + + { + this.NameAvailable = nameAvailable; + this.Reason = reason; + this.Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets if true, the name is valid and available. If false, 'reason' + /// describes why not. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "nameAvailable")] + public bool? NameAvailable {get; set; } + + /// + /// Gets or sets the reason why the name is not available, if nameAvailable is + /// false Possible values include: 'AlreadyExists', 'Invalid' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "reason")] + public string Reason {get; set; } + + /// + /// Gets or sets the localized reason why the name is not available, if + /// nameAvailable is false + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NameCheckFailureReason.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NameCheckFailureReason.cs new file mode 100644 index 000000000000..cc3d5e9b77c8 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NameCheckFailureReason.cs @@ -0,0 +1,19 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for NameCheckFailureReason. + /// + + + public static class NameCheckFailureReason + { + public const string AlreadyExists = "AlreadyExists"; + public const string Invalid = "Invalid"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlDataMigrationTable.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlDataMigrationTable.cs new file mode 100644 index 000000000000..6c5da8f0e45d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlDataMigrationTable.cs @@ -0,0 +1,48 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Defines metadata for table to be migrated + /// + public partial class NonSqlDataMigrationTable + { + /// + /// Initializes a new instance of the NonSqlDataMigrationTable class. + /// + public NonSqlDataMigrationTable() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NonSqlDataMigrationTable class. + /// + + /// Source table name + /// + public NonSqlDataMigrationTable(string sourceName = default(string)) + + { + this.SourceName = sourceName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets source table name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceName")] + public string SourceName {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlDataMigrationTableResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlDataMigrationTableResult.cs new file mode 100644 index 000000000000..7368b2ebcca0 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlDataMigrationTableResult.cs @@ -0,0 +1,109 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Object used to report the data migration results of a table + /// + public partial class NonSqlDataMigrationTableResult + { + /// + /// Initializes a new instance of the NonSqlDataMigrationTableResult class. + /// + public NonSqlDataMigrationTableResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NonSqlDataMigrationTableResult class. + /// + + /// Result code of the data migration + /// Possible values include: 'Initial', 'Completed', 'ObjectNotExistsInSource', + /// 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' + + /// Name of the source table + /// + + /// Name of the target table + /// + + /// Number of rows in the source table + /// + + /// Number of rows in the target table + /// + + /// Time taken to migrate the data + /// + + /// List of errors, if any, during migration + /// + public NonSqlDataMigrationTableResult(string resultCode = default(string), string sourceName = default(string), string targetName = default(string), long? sourceRowCount = default(long?), long? targetRowCount = default(long?), double? elapsedTimeInMiliseconds = default(double?), System.Collections.Generic.IList errors = default(System.Collections.Generic.IList)) + + { + this.ResultCode = resultCode; + this.SourceName = sourceName; + this.TargetName = targetName; + this.SourceRowCount = sourceRowCount; + this.TargetRowCount = targetRowCount; + this.ElapsedTimeInMiliseconds = elapsedTimeInMiliseconds; + this.Errors = errors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result code of the data migration Possible values include: 'Initial', 'Completed', 'ObjectNotExistsInSource', 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "resultCode")] + public string ResultCode {get; private set; } + + /// + /// Gets name of the source table + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceName")] + public string SourceName {get; private set; } + + /// + /// Gets name of the target table + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetName")] + public string TargetName {get; private set; } + + /// + /// Gets number of rows in the source table + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceRowCount")] + public long? SourceRowCount {get; private set; } + + /// + /// Gets number of rows in the target table + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetRowCount")] + public long? TargetRowCount {get; private set; } + + /// + /// Gets time taken to migrate the data + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "elapsedTimeInMiliseconds")] + public double? ElapsedTimeInMiliseconds {get; private set; } + + /// + /// Gets list of errors, if any, during migration + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errors")] + public System.Collections.Generic.IList Errors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlMigrationTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlMigrationTaskInput.cs new file mode 100644 index 000000000000..e1ad75160e92 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlMigrationTaskInput.cs @@ -0,0 +1,126 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Base class for non sql migration task input + /// + public partial class NonSqlMigrationTaskInput + { + /// + /// Initializes a new instance of the NonSqlMigrationTaskInput class. + /// + public NonSqlMigrationTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NonSqlMigrationTaskInput class. + /// + + /// Information for connecting to target + /// + + /// Target database name + /// + + /// Name of the migration project + /// + + /// A URL that points to the drop location to access project artifacts + /// + + /// Metadata of the tables selected for migration + /// + public NonSqlMigrationTaskInput(SqlConnectionInfo targetConnectionInfo, string targetDatabaseName, string projectName, string projectLocation, System.Collections.Generic.IList selectedTables) + + { + this.TargetConnectionInfo = targetConnectionInfo; + this.TargetDatabaseName = targetDatabaseName; + this.ProjectName = projectName; + this.ProjectLocation = projectLocation; + this.SelectedTables = selectedTables; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets information for connecting to target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public SqlConnectionInfo TargetConnectionInfo {get; set; } + + /// + /// Gets or sets target database name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetDatabaseName")] + public string TargetDatabaseName {get; set; } + + /// + /// Gets or sets name of the migration project + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "projectName")] + public string ProjectName {get; set; } + + /// + /// Gets or sets a URL that points to the drop location to access project + /// artifacts + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "projectLocation")] + public string ProjectLocation {get; set; } + + /// + /// Gets or sets metadata of the tables selected for migration + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedTables")] + public System.Collections.Generic.IList SelectedTables {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.TargetDatabaseName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetDatabaseName"); + } + if (this.ProjectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ProjectName"); + } + if (this.ProjectLocation == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ProjectLocation"); + } + if (this.SelectedTables == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedTables"); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlMigrationTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlMigrationTaskOutput.cs new file mode 100644 index 000000000000..2bb4005dfafd --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/NonSqlMigrationTaskOutput.cs @@ -0,0 +1,122 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Base class for non sql migration task output + /// + public partial class NonSqlMigrationTaskOutput + { + /// + /// Initializes a new instance of the NonSqlMigrationTaskOutput class. + /// + public NonSqlMigrationTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NonSqlMigrationTaskOutput class. + /// + + /// Result identifier + /// + + /// Migration start time + /// + + /// Migration end time + /// + + /// Current state of migration + /// Possible values include: 'Default', 'Connecting', + /// 'SourceAndTargetSelected', 'SelectLogins', 'Configured', 'Running', + /// 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' + + /// Results of the migration. The key contains the table name and the value the + /// table result object + /// + + /// Message about the progress of the migration + /// + + /// Name of source server + /// + + /// Name of target server + /// + public NonSqlMigrationTaskOutput(string id = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string status = default(string), System.Collections.Generic.IDictionary dataMigrationTableResults = default(System.Collections.Generic.IDictionary), string progressMessage = default(string), string sourceServerName = default(string), string targetServerName = default(string)) + + { + this.Id = id; + this.StartedOn = startedOn; + this.EndedOn = endedOn; + this.Status = status; + this.DataMigrationTableResults = dataMigrationTableResults; + this.ProgressMessage = progressMessage; + this.SourceServerName = sourceServerName; + this.TargetServerName = targetServerName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets migration start time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "startedOn")] + public System.DateTimeOffset? StartedOn {get; private set; } + + /// + /// Gets migration end time + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "endedOn")] + public System.DateTimeOffset? EndedOn {get; private set; } + + /// + /// Gets current state of migration Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + public string Status {get; private set; } + + /// + /// Gets results of the migration. The key contains the table name and the + /// value the table result object + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "dataMigrationTableResults")] + public System.Collections.Generic.IDictionary DataMigrationTableResults {get; private set; } + + /// + /// Gets message about the progress of the migration + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "progressMessage")] + public string ProgressMessage {get; private set; } + + /// + /// Gets name of source server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceServerName")] + public string SourceServerName {get; private set; } + + /// + /// Gets name of target server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetServerName")] + public string TargetServerName {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ODataError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ODataError.cs new file mode 100644 index 000000000000..820b80e04c1e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ODataError.cs @@ -0,0 +1,70 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Error information in OData format. + /// + public partial class ODataError + { + /// + /// Initializes a new instance of the ODataError class. + /// + public ODataError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ODataError class. + /// + + /// The machine-readable description of the error, such as 'InvalidRequest' or + /// 'InternalServerError' + /// + + /// The human-readable description of the error + /// + + /// Inner errors that caused this error + /// + public ODataError(string code = default(string), string message = default(string), System.Collections.Generic.IList details = default(System.Collections.Generic.IList)) + + { + this.Code = code; + this.Message = message; + this.Details = details; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the machine-readable description of the error, such as + /// 'InvalidRequest' or 'InternalServerError' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + public string Code {get; set; } + + /// + /// Gets or sets the human-readable description of the error + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; set; } + + /// + /// Gets or sets inner errors that caused this error + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "details")] + public System.Collections.Generic.IList Details {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ObjectType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ObjectType.cs new file mode 100644 index 000000000000..b5d154ea604e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ObjectType.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.DataMigration.Models +{ + + /// + /// Defines values for ObjectType. + /// + + + public static class ObjectType + { + public const string StoredProcedures = "StoredProcedures"; + public const string Table = "Table"; + public const string User = "User"; + public const string View = "View"; + public const string Function = "Function"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/OrphanedUserInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/OrphanedUserInfo.cs new file mode 100644 index 000000000000..f7b15a5240a0 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/OrphanedUserInfo.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Information of orphaned users on the SQL server database. + /// + public partial class OrphanedUserInfo + { + /// + /// Initializes a new instance of the OrphanedUserInfo class. + /// + public OrphanedUserInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OrphanedUserInfo class. + /// + + /// Name of the orphaned user + /// + + /// Parent database of the user + /// + public OrphanedUserInfo(string name = default(string), string databaseName = default(string)) + + { + this.Name = name; + this.DatabaseName = databaseName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the orphaned user + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets parent database of the user + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Page.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Page.cs new file mode 100644 index 000000000000..b767589fdfda --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Page.cs @@ -0,0 +1,43 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [Newtonsoft.Json.JsonObject] + public class Page : Microsoft.Rest.Azure.IPage + { + /// + /// Gets the link to the next page. + /// + [Newtonsoft.Json.JsonProperty("nextLink")] + public System.String NextPageLink { get; private set; } + + [Newtonsoft.Json.JsonProperty("value")] + private System.Collections.Generic.IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public System.Collections.Generic.IEnumerator GetEnumerator() + { + return (Items == null) ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/PostgreSqlConnectionInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/PostgreSqlConnectionInfo.cs new file mode 100644 index 000000000000..70642e9e4571 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/PostgreSqlConnectionInfo.cs @@ -0,0 +1,91 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Information for connecting to PostgreSQL server + /// + [Newtonsoft.Json.JsonObject("PostgreSqlConnectionInfo")] + public partial class PostgreSqlConnectionInfo : ConnectionInfo + { + /// + /// Initializes a new instance of the PostgreSqlConnectionInfo class. + /// + public PostgreSqlConnectionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PostgreSqlConnectionInfo class. + /// + + /// User name + /// + + /// Password credential. + /// + + /// Name of the server + /// + + /// Name of the database + /// + + /// Port for Server + /// + public PostgreSqlConnectionInfo(string serverName, int port, string userName = default(string), string password = default(string), string databaseName = default(string)) + + : base(userName, password) + { + this.ServerName = serverName; + this.DatabaseName = databaseName; + this.Port = port; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverName")] + public string ServerName {get; set; } + + /// + /// Gets or sets name of the database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseName")] + public string DatabaseName {get; set; } + + /// + /// Gets or sets port for Server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "port")] + public int Port {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.ServerName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ServerName"); + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Project.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Project.cs new file mode 100644 index 000000000000..ad98cad986f7 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Project.cs @@ -0,0 +1,151 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// A project resource + /// + [Microsoft.Rest.Serialization.JsonTransformation] + public partial class Project : TrackedResource + { + /// + /// Initializes a new instance of the Project class. + /// + public Project() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Project class. + /// + + /// Resource ID. + /// + + /// Resource name. + /// + + /// Resource type. + /// + + /// Resource tags. + /// + + /// Resource location. + /// + + /// Source platform for the project + /// Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' + + /// Target platform for the project + /// Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', + /// 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' + + /// UTC Date and time when project was created + /// + + /// Information for connecting to source + /// + + /// Information for connecting to target + /// + + /// List of DatabaseInfo + /// + + /// The project's provisioning state + /// Possible values include: 'Deleting', 'Succeeded' + public Project(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string sourcePlatform = default(string), string targetPlatform = default(string), System.DateTimeOffset? creationTime = default(System.DateTimeOffset?), ConnectionInfo sourceConnectionInfo = default(ConnectionInfo), ConnectionInfo targetConnectionInfo = default(ConnectionInfo), System.Collections.Generic.IList databasesInfo = default(System.Collections.Generic.IList), string provisioningState = default(string)) + + : base(location, id, name, type, tags) + { + this.SourcePlatform = sourcePlatform; + this.TargetPlatform = targetPlatform; + this.CreationTime = creationTime; + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + this.DatabasesInfo = databasesInfo; + this.ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets source platform for the project Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.sourcePlatform")] + public string SourcePlatform {get; set; } + + /// + /// Gets or sets target platform for the project Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.targetPlatform")] + public string TargetPlatform {get; set; } + + /// + /// Gets uTC Date and time when project was created + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.creationTime")] + public System.DateTimeOffset? CreationTime {get; private set; } + + /// + /// Gets or sets information for connecting to source + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.sourceConnectionInfo")] + public ConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets information for connecting to target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.targetConnectionInfo")] + public ConnectionInfo TargetConnectionInfo {get; set; } + + /// + /// Gets or sets list of DatabaseInfo + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.databasesInfo")] + public System.Collections.Generic.IList DatabasesInfo {get; set; } + + /// + /// Gets the project's provisioning state Possible values include: 'Deleting', 'Succeeded' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + + + + + if (this.DatabasesInfo != null) + { + foreach (var element in this.DatabasesInfo) + { + if (element != null) + { + element.Validate(); + } + } + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectFile.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectFile.cs new file mode 100644 index 000000000000..fb89c6b43ff9 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectFile.cs @@ -0,0 +1,68 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// A file resource + /// + public partial class ProjectFile : Resource + { + /// + /// Initializes a new instance of the ProjectFile class. + /// + public ProjectFile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProjectFile class. + /// + + /// Resource ID. + /// + + /// Resource name. + /// + + /// Resource type. + /// + + /// HTTP strong entity tag value. This is ignored if submitted. + /// + + /// Custom file properties + /// + public ProjectFile(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), ProjectFileProperties properties = default(ProjectFileProperties)) + + : base(id, name, type) + { + this.Etag = etag; + this.Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets hTTP strong entity tag value. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "etag")] + public string Etag {get; set; } + + /// + /// Gets or sets custom file properties + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties")] + public ProjectFileProperties Properties {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectFileProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectFileProperties.cs new file mode 100644 index 000000000000..560a75f06225 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectFileProperties.cs @@ -0,0 +1,94 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Base class for file properties. + /// + public partial class ProjectFileProperties + { + /// + /// Initializes a new instance of the ProjectFileProperties class. + /// + public ProjectFileProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProjectFileProperties class. + /// + + /// Optional File extension. If submitted it should not have a leading period + /// and must match the extension from filePath. + /// + + /// Relative path of this file resource. This property can be set when creating + /// or updating the file resource. + /// + + /// Modification DateTime. + /// + + /// File content type. This property can be modified to reflect the file + /// content type. + /// + + /// File size. + /// + public ProjectFileProperties(string extension = default(string), string filePath = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), string mediaType = default(string), long? size = default(long?)) + + { + this.Extension = extension; + this.FilePath = filePath; + this.LastModified = lastModified; + this.MediaType = mediaType; + this.Size = size; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets optional File extension. If submitted it should not have a + /// leading period and must match the extension from filePath. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "extension")] + public string Extension {get; set; } + + /// + /// Gets or sets relative path of this file resource. This property can be set + /// when creating or updating the file resource. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "filePath")] + public string FilePath {get; set; } + + /// + /// Gets modification DateTime. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lastModified")] + public System.DateTimeOffset? LastModified {get; private set; } + + /// + /// Gets or sets file content type. This property can be modified to reflect + /// the file content type. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "mediaType")] + public string MediaType {get; set; } + + /// + /// Gets file size. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "size")] + public long? Size {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectProperties.cs new file mode 100644 index 000000000000..c46408422317 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectProperties.cs @@ -0,0 +1,141 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Project-specific properties + /// + public partial class ProjectProperties + { + /// + /// Initializes a new instance of the ProjectProperties class. + /// + public ProjectProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProjectProperties class. + /// + + /// Source platform for the project + /// Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' + + /// Target platform for the project + /// Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', + /// 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' + + /// UTC Date and time when project was created + /// + + /// Information for connecting to source + /// + + /// Information for connecting to target + /// + + /// List of DatabaseInfo + /// + + /// The project's provisioning state + /// Possible values include: 'Deleting', 'Succeeded' + public ProjectProperties(string sourcePlatform, string targetPlatform, System.DateTimeOffset? creationTime = default(System.DateTimeOffset?), ConnectionInfo sourceConnectionInfo = default(ConnectionInfo), ConnectionInfo targetConnectionInfo = default(ConnectionInfo), System.Collections.Generic.IList databasesInfo = default(System.Collections.Generic.IList), string provisioningState = default(string)) + + { + this.SourcePlatform = sourcePlatform; + this.TargetPlatform = targetPlatform; + this.CreationTime = creationTime; + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + this.DatabasesInfo = databasesInfo; + this.ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets source platform for the project Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourcePlatform")] + public string SourcePlatform {get; set; } + + /// + /// Gets or sets target platform for the project Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetPlatform")] + public string TargetPlatform {get; set; } + + /// + /// Gets uTC Date and time when project was created + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "creationTime")] + public System.DateTimeOffset? CreationTime {get; private set; } + + /// + /// Gets or sets information for connecting to source + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public ConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets information for connecting to target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public ConnectionInfo TargetConnectionInfo {get; set; } + + /// + /// Gets or sets list of DatabaseInfo + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databasesInfo")] + public System.Collections.Generic.IList DatabasesInfo {get; set; } + + /// + /// Gets the project's provisioning state Possible values include: 'Deleting', 'Succeeded' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourcePlatform == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourcePlatform"); + } + if (this.TargetPlatform == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetPlatform"); + } + + + + + if (this.DatabasesInfo != null) + { + foreach (var element in this.DatabasesInfo) + { + if (element != null) + { + element.Validate(); + } + } + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectProvisioningState.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectProvisioningState.cs new file mode 100644 index 000000000000..d76821d6e7b1 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectProvisioningState.cs @@ -0,0 +1,19 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for ProjectProvisioningState. + /// + + + public static class ProjectProvisioningState + { + public const string Deleting = "Deleting"; + public const string Succeeded = "Succeeded"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectSourcePlatform.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectSourcePlatform.cs new file mode 100644 index 000000000000..4b51f8ce221c --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectSourcePlatform.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.DataMigration.Models +{ + + /// + /// Defines values for ProjectSourcePlatform. + /// + + + public static class ProjectSourcePlatform + { + public const string SQL = "SQL"; + public const string MySQL = "MySQL"; + public const string PostgreSql = "PostgreSql"; + public const string MongoDb = "MongoDb"; + public const string Unknown = "Unknown"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectTargetPlatform.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectTargetPlatform.cs new file mode 100644 index 000000000000..a60ba51812fa --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectTargetPlatform.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.DataMigration.Models +{ + + /// + /// Defines values for ProjectTargetPlatform. + /// + + + public static class ProjectTargetPlatform + { + public const string Sqldb = "SQLDB"; + public const string Sqlmi = "SQLMI"; + public const string AzureDbForMySql = "AzureDbForMySql"; + public const string AzureDbForPostgreSql = "AzureDbForPostgreSql"; + public const string MongoDb = "MongoDb"; + public const string Unknown = "Unknown"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectTask.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectTask.cs new file mode 100644 index 000000000000..29add9c78800 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectTask.cs @@ -0,0 +1,68 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// A task resource + /// + public partial class ProjectTask : Resource + { + /// + /// Initializes a new instance of the ProjectTask class. + /// + public ProjectTask() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProjectTask class. + /// + + /// Resource ID. + /// + + /// Resource name. + /// + + /// Resource type. + /// + + /// HTTP strong entity tag value. This is ignored if submitted. + /// + + /// Custom task properties + /// + public ProjectTask(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), ProjectTaskProperties properties = default(ProjectTaskProperties)) + + : base(id, name, type) + { + this.Etag = etag; + this.Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets hTTP strong entity tag value. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "etag")] + public string Etag {get; set; } + + /// + /// Gets or sets custom task properties + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties")] + public ProjectTaskProperties Properties {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectTaskProperties.cs new file mode 100644 index 000000000000..ea9f63ce9d77 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ProjectTaskProperties.cs @@ -0,0 +1,82 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Base class for all types of DMS task properties. If task is not supported + /// by current client, this object is returned. + /// + [Newtonsoft.Json.JsonObject("ProjectTaskProperties")] + public partial class ProjectTaskProperties + { + /// + /// Initializes a new instance of the ProjectTaskProperties class. + /// + public ProjectTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProjectTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + public ProjectTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary)) + + { + this.Errors = errors; + this.State = state; + this.Commands = commands; + this.ClientData = clientData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets array of errors. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "errors")] + public System.Collections.Generic.IList Errors {get; private set; } + + /// + /// Gets the state of the task. This is ignored if submitted. Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets array of command properties. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "commands")] + public System.Collections.Generic.IList Commands {get; private set; } + + /// + /// Gets or sets key value pairs of client data to attach meta data information + /// to task + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "clientData")] + public System.Collections.Generic.IDictionary ClientData {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/QueryAnalysisValidationResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/QueryAnalysisValidationResult.cs new file mode 100644 index 000000000000..6374d305978e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/QueryAnalysisValidationResult.cs @@ -0,0 +1,59 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Results for query analysis comparison between the source and target + /// + public partial class QueryAnalysisValidationResult + { + /// + /// Initializes a new instance of the QueryAnalysisValidationResult class. + /// + public QueryAnalysisValidationResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the QueryAnalysisValidationResult class. + /// + + /// List of queries executed and it's execution results in source and target + /// + + /// Errors that are part of the execution + /// + public QueryAnalysisValidationResult(QueryExecutionResult queryResults = default(QueryExecutionResult), ValidationError validationErrors = default(ValidationError)) + + { + this.QueryResults = queryResults; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets list of queries executed and it's execution results in source + /// and target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "queryResults")] + public QueryExecutionResult QueryResults {get; set; } + + /// + /// Gets or sets errors that are part of the execution + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public ValidationError ValidationErrors {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/QueryExecutionResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/QueryExecutionResult.cs new file mode 100644 index 000000000000..6e973dbdad92 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/QueryExecutionResult.cs @@ -0,0 +1,78 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes query analysis results for execution in source and target + /// + public partial class QueryExecutionResult + { + /// + /// Initializes a new instance of the QueryExecutionResult class. + /// + public QueryExecutionResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the QueryExecutionResult class. + /// + + /// Query text retrieved from the source server + /// + + /// Total no. of statements in the batch + /// + + /// Query analysis result from the source + /// + + /// Query analysis result from the target + /// + public QueryExecutionResult(string queryText = default(string), long? statementsInBatch = default(long?), ExecutionStatistics sourceResult = default(ExecutionStatistics), ExecutionStatistics targetResult = default(ExecutionStatistics)) + + { + this.QueryText = queryText; + this.StatementsInBatch = statementsInBatch; + this.SourceResult = sourceResult; + this.TargetResult = targetResult; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets query text retrieved from the source server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "queryText")] + public string QueryText {get; set; } + + /// + /// Gets or sets total no. of statements in the batch + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "statementsInBatch")] + public long? StatementsInBatch {get; set; } + + /// + /// Gets or sets query analysis result from the source + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceResult")] + public ExecutionStatistics SourceResult {get; set; } + + /// + /// Gets or sets query analysis result from the target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetResult")] + public ExecutionStatistics TargetResult {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Quota.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Quota.cs new file mode 100644 index 000000000000..e3ec1cbfa00b --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Quota.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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes a quota for or usage details about a resource + /// + public partial class Quota + { + /// + /// Initializes a new instance of the Quota class. + /// + public Quota() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Quota class. + /// + + /// The current value of the quota. If null or missing, the current value + /// cannot be determined in the context of the request. + /// + + /// The resource ID of the quota object + /// + + /// The maximum value of the quota. If null or missing, the quota has no + /// maximum, in which case it merely tracks usage. + /// + + /// The name of the quota + /// + + /// The unit for the quota, such as Count, Bytes, BytesPerSecond, etc. + /// + public Quota(double? currentValue = default(double?), string id = default(string), double? limit = default(double?), QuotaName name = default(QuotaName), string unit = default(string)) + + { + this.CurrentValue = currentValue; + this.Id = id; + this.Limit = limit; + this.Name = name; + this.Unit = unit; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the current value of the quota. If null or missing, the + /// current value cannot be determined in the context of the request. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "currentValue")] + public double? CurrentValue {get; set; } + + /// + /// Gets or sets the resource ID of the quota object + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; set; } + + /// + /// Gets or sets the maximum value of the quota. If null or missing, the quota + /// has no maximum, in which case it merely tracks usage. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "limit")] + public double? Limit {get; set; } + + /// + /// Gets or sets the name of the quota + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public QuotaName Name {get; set; } + + /// + /// Gets or sets the unit for the quota, such as Count, Bytes, BytesPerSecond, + /// etc. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "unit")] + public string Unit {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/QuotaName.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/QuotaName.cs new file mode 100644 index 000000000000..16169879d140 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/QuotaName.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// The name of the quota + /// + public partial class QuotaName + { + /// + /// Initializes a new instance of the QuotaName class. + /// + public QuotaName() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the QuotaName class. + /// + + /// The localized name of the quota + /// + + /// The unlocalized name (or ID) of the quota + /// + public QuotaName(string localizedValue = default(string), string value = default(string)) + + { + this.LocalizedValue = localizedValue; + this.Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the localized name of the quota + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "localizedValue")] + public string LocalizedValue {get; set; } + + /// + /// Gets or sets the unlocalized name (or ID) of the quota + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + public string Value {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ReportableException.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ReportableException.cs new file mode 100644 index 000000000000..5fe5ac9ffc36 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ReportableException.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.DataMigration.Models +{ + using System.Linq; + + /// + /// Exception object for all custom exceptions + /// + public partial class ReportableException + { + /// + /// Initializes a new instance of the ReportableException class. + /// + public ReportableException() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ReportableException class. + /// + + /// Error message + /// + + /// Actionable steps for this exception + /// + + /// The path to the file where exception occurred + /// + + /// The line number where exception occurred + /// + + /// Coded numerical value that is assigned to a specific exception + /// + + /// Stack trace + /// + public ReportableException(string message = default(string), string actionableMessage = default(string), string filePath = default(string), string lineNumber = default(string), int? hResult = default(int?), string stackTrace = default(string)) + + { + this.Message = message; + this.ActionableMessage = actionableMessage; + this.FilePath = filePath; + this.LineNumber = lineNumber; + this.HResult = hResult; + this.StackTrace = stackTrace; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets error message + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; set; } + + /// + /// Gets or sets actionable steps for this exception + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "actionableMessage")] + public string ActionableMessage {get; set; } + + /// + /// Gets or sets the path to the file where exception occurred + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "filePath")] + public string FilePath {get; set; } + + /// + /// Gets or sets the line number where exception occurred + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "lineNumber")] + public string LineNumber {get; set; } + + /// + /// Gets or sets coded numerical value that is assigned to a specific exception + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "hResult")] + public int? HResult {get; set; } + + /// + /// Gets or sets stack trace + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "stackTrace")] + public string StackTrace {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Resource.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Resource.cs new file mode 100644 index 000000000000..6ce3b43f6d52 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Resource.cs @@ -0,0 +1,68 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// ARM resource. + /// + public partial class Resource : Microsoft.Rest.Azure.IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource class. + /// + + /// Resource ID. + /// + + /// Resource name. + /// + + /// Resource type. + /// + public Resource(string id = default(string), string name = default(string), string type = default(string)) + + { + this.Id = id; + this.Name = name; + this.Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets resource ID. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets resource name. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets resource type. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + public string Type {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSku.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSku.cs new file mode 100644 index 000000000000..9dd8171931f4 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSku.cs @@ -0,0 +1,160 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes an available DMS SKU. + /// + public partial class ResourceSku + { + /// + /// Initializes a new instance of the ResourceSku class. + /// + public ResourceSku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceSku class. + /// + + /// The type of resource the SKU applies to. + /// + + /// The name of SKU. + /// + + /// Specifies the tier of DMS in a scale set. + /// + + /// The Size of the SKU. + /// + + /// The Family of this particular SKU. + /// + + /// The Kind of resources that are supported in this SKU. + /// + + /// Not used. + /// + + /// The set of locations that the SKU is available. + /// + + /// The api versions that support this SKU. + /// + + /// Metadata for retrieving price info. + /// + + /// A name value pair to describe the capability. + /// + + /// The restrictions because of which SKU cannot be used. This is empty if + /// there are no restrictions. + /// + public ResourceSku(string resourceType = default(string), string name = default(string), string tier = default(string), string size = default(string), string family = default(string), string kind = default(string), ResourceSkuCapacity capacity = default(ResourceSkuCapacity), System.Collections.Generic.IList locations = default(System.Collections.Generic.IList), System.Collections.Generic.IList apiVersions = default(System.Collections.Generic.IList), System.Collections.Generic.IList costs = default(System.Collections.Generic.IList), System.Collections.Generic.IList capabilities = default(System.Collections.Generic.IList), System.Collections.Generic.IList restrictions = default(System.Collections.Generic.IList)) + + { + this.ResourceType = resourceType; + this.Name = name; + this.Tier = tier; + this.Size = size; + this.Family = family; + this.Kind = kind; + this.Capacity = capacity; + this.Locations = locations; + this.ApiVersions = apiVersions; + this.Costs = costs; + this.Capabilities = capabilities; + this.Restrictions = restrictions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the type of resource the SKU applies to. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "resourceType")] + public string ResourceType {get; private set; } + + /// + /// Gets the name of SKU. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets specifies the tier of DMS in a scale set. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tier")] + public string Tier {get; private set; } + + /// + /// Gets the Size of the SKU. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "size")] + public string Size {get; private set; } + + /// + /// Gets the Family of this particular SKU. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "family")] + public string Family {get; private set; } + + /// + /// Gets the Kind of resources that are supported in this SKU. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "kind")] + public string Kind {get; private set; } + + /// + /// Gets not used. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "capacity")] + public ResourceSkuCapacity Capacity {get; private set; } + + /// + /// Gets the set of locations that the SKU is available. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "locations")] + public System.Collections.Generic.IList Locations {get; private set; } + + /// + /// Gets the api versions that support this SKU. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "apiVersions")] + public System.Collections.Generic.IList ApiVersions {get; private set; } + + /// + /// Gets metadata for retrieving price info. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "costs")] + public System.Collections.Generic.IList Costs {get; private set; } + + /// + /// Gets a name value pair to describe the capability. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "capabilities")] + public System.Collections.Generic.IList Capabilities {get; private set; } + + /// + /// Gets the restrictions because of which SKU cannot be used. This is empty if + /// there are no restrictions. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "restrictions")] + public System.Collections.Generic.IList Restrictions {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCapabilities.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCapabilities.cs new file mode 100644 index 000000000000..a362afae0034 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCapabilities.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes The SKU capabilities object. + /// + public partial class ResourceSkuCapabilities + { + /// + /// Initializes a new instance of the ResourceSkuCapabilities class. + /// + public ResourceSkuCapabilities() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceSkuCapabilities class. + /// + + /// An invariant to describe the feature. + /// + + /// An invariant if the feature is measured by quantity. + /// + public ResourceSkuCapabilities(string name = default(string), string value = default(string)) + + { + this.Name = name; + this.Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets an invariant to describe the feature. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets an invariant if the feature is measured by quantity. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + public string Value {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCapacity.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCapacity.cs new file mode 100644 index 000000000000..fbdfb79db6e6 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCapacity.cs @@ -0,0 +1,78 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes scaling information of a SKU. + /// + public partial class ResourceSkuCapacity + { + /// + /// Initializes a new instance of the ResourceSkuCapacity class. + /// + public ResourceSkuCapacity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceSkuCapacity class. + /// + + /// The minimum capacity. + /// + + /// The maximum capacity. + /// + + /// The default capacity. + /// + + /// The scale type applicable to the SKU. + /// Possible values include: 'Automatic', 'Manual', 'None' + public ResourceSkuCapacity(long? minimum = default(long?), long? maximum = default(long?), long? defaultProperty = default(long?), string scaleType = default(string)) + + { + this.Minimum = minimum; + this.Maximum = maximum; + this.DefaultProperty = defaultProperty; + this.ScaleType = scaleType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the minimum capacity. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "minimum")] + public long? Minimum {get; private set; } + + /// + /// Gets the maximum capacity. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "maximum")] + public long? Maximum {get; private set; } + + /// + /// Gets the default capacity. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "default")] + public long? DefaultProperty {get; private set; } + + /// + /// Gets the scale type applicable to the SKU. Possible values include: 'Automatic', 'Manual', 'None' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "scaleType")] + public string ScaleType {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCapacityScaleType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCapacityScaleType.cs new file mode 100644 index 000000000000..7286dc59a75d --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCapacityScaleType.cs @@ -0,0 +1,20 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for ResourceSkuCapacityScaleType. + /// + + + public static class ResourceSkuCapacityScaleType + { + public const string Automatic = "Automatic"; + public const string Manual = "Manual"; + public const string None = "None"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCosts.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCosts.cs new file mode 100644 index 000000000000..194d4141312f --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuCosts.cs @@ -0,0 +1,68 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes metadata for retrieving price info. + /// + public partial class ResourceSkuCosts + { + /// + /// Initializes a new instance of the ResourceSkuCosts class. + /// + public ResourceSkuCosts() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceSkuCosts class. + /// + + /// Used for querying price from commerce. + /// + + /// The multiplier is needed to extend the base metered cost. + /// + + /// An invariant to show the extended unit. + /// + public ResourceSkuCosts(string meterId = default(string), long? quantity = default(long?), string extendedUnit = default(string)) + + { + this.MeterId = meterId; + this.Quantity = quantity; + this.ExtendedUnit = extendedUnit; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets used for querying price from commerce. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "meterID")] + public string MeterId {get; private set; } + + /// + /// Gets the multiplier is needed to extend the base metered cost. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "quantity")] + public long? Quantity {get; private set; } + + /// + /// Gets an invariant to show the extended unit. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "extendedUnit")] + public string ExtendedUnit {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuRestrictions.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuRestrictions.cs new file mode 100644 index 000000000000..4efbf6642819 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuRestrictions.cs @@ -0,0 +1,70 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Describes scaling information of a SKU. + /// + public partial class ResourceSkuRestrictions + { + /// + /// Initializes a new instance of the ResourceSkuRestrictions class. + /// + public ResourceSkuRestrictions() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceSkuRestrictions class. + /// + + /// The type of restrictions. + /// Possible values include: 'location' + + /// The value of restrictions. If the restriction type is set to location. This + /// would be different locations where the SKU is restricted. + /// + + /// The reason code for restriction. + /// Possible values include: 'QuotaId', 'NotAvailableForSubscription' + public ResourceSkuRestrictions(string type = default(string), System.Collections.Generic.IList values = default(System.Collections.Generic.IList), string reasonCode = default(string)) + + { + this.Type = type; + this.Values = values; + this.ReasonCode = reasonCode; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the type of restrictions. Possible values include: 'location' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + public string Type {get; private set; } + + /// + /// Gets the value of restrictions. If the restriction type is set to location. + /// This would be different locations where the SKU is restricted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "values")] + public System.Collections.Generic.IList Values {get; private set; } + + /// + /// Gets the reason code for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "reasonCode")] + public string ReasonCode {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuRestrictionsReasonCode.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuRestrictionsReasonCode.cs new file mode 100644 index 000000000000..9886ecdf53c1 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuRestrictionsReasonCode.cs @@ -0,0 +1,19 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for ResourceSkuRestrictionsReasonCode. + /// + + + public static class ResourceSkuRestrictionsReasonCode + { + public const string QuotaId = "QuotaId"; + public const string NotAvailableForSubscription = "NotAvailableForSubscription"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuRestrictionsType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuRestrictionsType.cs new file mode 100644 index 000000000000..f518e98b4029 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ResourceSkuRestrictionsType.cs @@ -0,0 +1,18 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for ResourceSkuRestrictionsType. + /// + + + public static class ResourceSkuRestrictionsType + { + public const string Location = "location"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaComparisonValidationResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaComparisonValidationResult.cs new file mode 100644 index 000000000000..92d75499773f --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaComparisonValidationResult.cs @@ -0,0 +1,80 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Results for schema comparison between the source and target + /// + public partial class SchemaComparisonValidationResult + { + /// + /// Initializes a new instance of the SchemaComparisonValidationResult class. + /// + public SchemaComparisonValidationResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SchemaComparisonValidationResult class. + /// + + /// List of schema differences between the source and target databases + /// + + /// List of errors that happened while performing schema compare validation + /// + + /// Count of source database objects + /// + + /// Count of target database objects + /// + public SchemaComparisonValidationResult(SchemaComparisonValidationResultType schemaDifferences = default(SchemaComparisonValidationResultType), ValidationError validationErrors = default(ValidationError), System.Collections.Generic.IDictionary sourceDatabaseObjectCount = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IDictionary targetDatabaseObjectCount = default(System.Collections.Generic.IDictionary)) + + { + this.SchemaDifferences = schemaDifferences; + this.ValidationErrors = validationErrors; + this.SourceDatabaseObjectCount = sourceDatabaseObjectCount; + this.TargetDatabaseObjectCount = targetDatabaseObjectCount; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets list of schema differences between the source and target + /// databases + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "schemaDifferences")] + public SchemaComparisonValidationResultType SchemaDifferences {get; set; } + + /// + /// Gets or sets list of errors that happened while performing schema compare + /// validation + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public ValidationError ValidationErrors {get; set; } + + /// + /// Gets or sets count of source database objects + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceDatabaseObjectCount")] + public System.Collections.Generic.IDictionary SourceDatabaseObjectCount {get; set; } + + /// + /// Gets or sets count of target database objects + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetDatabaseObjectCount")] + public System.Collections.Generic.IDictionary TargetDatabaseObjectCount {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaComparisonValidationResultType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaComparisonValidationResultType.cs new file mode 100644 index 000000000000..c83713e48484 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaComparisonValidationResultType.cs @@ -0,0 +1,72 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Description about the errors happen while performing migration validation + /// + public partial class SchemaComparisonValidationResultType + { + /// + /// Initializes a new instance of the SchemaComparisonValidationResultType class. + /// + public SchemaComparisonValidationResultType() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SchemaComparisonValidationResultType class. + /// + + /// Name of the object that has the difference + /// + + /// Type of the object that has the difference. e.g + /// (Table/View/StoredProcedure) + /// Possible values include: 'StoredProcedures', 'Table', 'User', 'View', + /// 'Function' + + /// Update action type with respect to target + /// Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', + /// 'AddedOnTarget' + public SchemaComparisonValidationResultType(string objectName = default(string), string objectType = default(string), string updateAction = default(string)) + + { + this.ObjectName = objectName; + this.ObjectType = objectType; + this.UpdateAction = updateAction; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of the object that has the difference + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "objectName")] + public string ObjectName {get; set; } + + /// + /// Gets or sets type of the object that has the difference. e.g + /// (Table/View/StoredProcedure) Possible values include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "objectType")] + public string ObjectType {get; set; } + + /// + /// Gets or sets update action type with respect to target Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "updateAction")] + public string UpdateAction {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaMigrationOption.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaMigrationOption.cs new file mode 100644 index 000000000000..53bf690e8428 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaMigrationOption.cs @@ -0,0 +1,20 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for SchemaMigrationOption. + /// + + + public static class SchemaMigrationOption + { + public const string None = "None"; + public const string ExtractFromSource = "ExtractFromSource"; + public const string UseStorageFile = "UseStorageFile"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaMigrationSetting.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaMigrationSetting.cs new file mode 100644 index 000000000000..4957b0c1ebfe --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaMigrationSetting.cs @@ -0,0 +1,59 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Settings for migrating schema from source to target + /// + public partial class SchemaMigrationSetting + { + /// + /// Initializes a new instance of the SchemaMigrationSetting class. + /// + public SchemaMigrationSetting() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SchemaMigrationSetting class. + /// + + /// Option on how to migrate the schema + /// Possible values include: 'None', 'ExtractFromSource', 'UseStorageFile' + + /// Resource Identifier of a file resource containing the uploaded schema file + /// + public SchemaMigrationSetting(string schemaOption = default(string), string fileId = default(string)) + + { + this.SchemaOption = schemaOption; + this.FileId = fileId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets option on how to migrate the schema Possible values include: 'None', 'ExtractFromSource', 'UseStorageFile' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "schemaOption")] + public string SchemaOption {get; set; } + + /// + /// Gets or sets resource Identifier of a file resource containing the uploaded + /// schema file + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "fileId")] + public string FileId {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaMigrationStage.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaMigrationStage.cs new file mode 100644 index 000000000000..c8434c51bc41 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SchemaMigrationStage.cs @@ -0,0 +1,27 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for SchemaMigrationStage. + /// + + + public static class SchemaMigrationStage + { + public const string NotStarted = "NotStarted"; + public const string ValidatingInputs = "ValidatingInputs"; + public const string CollectingObjects = "CollectingObjects"; + public const string DownloadingScript = "DownloadingScript"; + public const string GeneratingScript = "GeneratingScript"; + public const string UploadingScript = "UploadingScript"; + public const string DeployingSchema = "DeployingSchema"; + public const string Completed = "Completed"; + public const string CompletedWithWarnings = "CompletedWithWarnings"; + public const string Failed = "Failed"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SelectedCertificateInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SelectedCertificateInput.cs new file mode 100644 index 000000000000..3d2eee16efe9 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SelectedCertificateInput.cs @@ -0,0 +1,77 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Info for certificate to be exported for TDE enabled databases. + /// + public partial class SelectedCertificateInput + { + /// + /// Initializes a new instance of the SelectedCertificateInput class. + /// + public SelectedCertificateInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SelectedCertificateInput class. + /// + + /// Name of certificate to be exported. + /// + + /// Password to use for encrypting the exported certificate. + /// + public SelectedCertificateInput(string certificateName, string password) + + { + this.CertificateName = certificateName; + this.Password = password; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets name of certificate to be exported. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "certificateName")] + public string CertificateName {get; set; } + + /// + /// Gets or sets password to use for encrypting the exported certificate. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "password")] + public string Password {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.CertificateName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "CertificateName"); + } + if (this.Password == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Password"); + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServerLevelPermissionsGroup.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServerLevelPermissionsGroup.cs new file mode 100644 index 000000000000..d0e8e7c7f3ea --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServerLevelPermissionsGroup.cs @@ -0,0 +1,63 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for ServerLevelPermissionsGroup. + /// + + + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + public enum ServerLevelPermissionsGroup + { + [System.Runtime.Serialization.EnumMember(Value = "Default")] + Default, + [System.Runtime.Serialization.EnumMember(Value = "MigrationFromSqlServerToAzureDB")] + MigrationFromSqlServerToAzureDB, + [System.Runtime.Serialization.EnumMember(Value = "MigrationFromSqlServerToAzureMI")] + MigrationFromSqlServerToAzureMI, + [System.Runtime.Serialization.EnumMember(Value = "MigrationFromMySQLToAzureDBForMySQL")] + MigrationFromMySQLToAzureDBForMySQL + } + internal static class ServerLevelPermissionsGroupEnumExtension + { + internal static string ToSerializedValue(this ServerLevelPermissionsGroup? value) + { + return value == null ? null : ((ServerLevelPermissionsGroup)value).ToSerializedValue(); + } + internal static string ToSerializedValue(this ServerLevelPermissionsGroup value) + { + switch( value ) + { + case ServerLevelPermissionsGroup.Default: + return "Default"; + case ServerLevelPermissionsGroup.MigrationFromSqlServerToAzureDB: + return "MigrationFromSqlServerToAzureDB"; + case ServerLevelPermissionsGroup.MigrationFromSqlServerToAzureMI: + return "MigrationFromSqlServerToAzureMI"; + case ServerLevelPermissionsGroup.MigrationFromMySQLToAzureDBForMySQL: + return "MigrationFromMySQLToAzureDBForMySQL"; + } + return null; + } + internal static ServerLevelPermissionsGroup? ParseServerLevelPermissionsGroup(this string value) + { + switch( value ) + { + case "Default": + return ServerLevelPermissionsGroup.Default; + case "MigrationFromSqlServerToAzureDB": + return ServerLevelPermissionsGroup.MigrationFromSqlServerToAzureDB; + case "MigrationFromSqlServerToAzureMI": + return ServerLevelPermissionsGroup.MigrationFromSqlServerToAzureMI; + case "MigrationFromMySQLToAzureDBForMySQL": + return ServerLevelPermissionsGroup.MigrationFromMySQLToAzureDBForMySQL; + } + return null; + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServerProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServerProperties.cs new file mode 100644 index 000000000000..63e2dd5d93cb --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServerProperties.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.DataMigration.Models +{ + using System.Linq; + + /// + /// Server properties for Oracle, MySQL type source + /// + public partial class ServerProperties + { + /// + /// Initializes a new instance of the ServerProperties class. + /// + public ServerProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerProperties class. + /// + + /// Name of the server platform + /// + + /// Name of the server + /// + + /// Version of the database server + /// + + /// Edition of the database server + /// + + /// Version of the operating system + /// + + /// Number of databases in the server + /// + public ServerProperties(string serverPlatform = default(string), string serverName = default(string), string serverVersion = default(string), string serverEdition = default(string), string serverOperatingSystemVersion = default(string), int? serverDatabaseCount = default(int?)) + + { + this.ServerPlatform = serverPlatform; + this.ServerName = serverName; + this.ServerVersion = serverVersion; + this.ServerEdition = serverEdition; + this.ServerOperatingSystemVersion = serverOperatingSystemVersion; + this.ServerDatabaseCount = serverDatabaseCount; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of the server platform + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverPlatform")] + public string ServerPlatform {get; private set; } + + /// + /// Gets name of the server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverName")] + public string ServerName {get; private set; } + + /// + /// Gets version of the database server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverVersion")] + public string ServerVersion {get; private set; } + + /// + /// Gets edition of the database server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverEdition")] + public string ServerEdition {get; private set; } + + /// + /// Gets version of the operating system + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverOperatingSystemVersion")] + public string ServerOperatingSystemVersion {get; private set; } + + /// + /// Gets number of databases in the server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "serverDatabaseCount")] + public int? ServerDatabaseCount {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceOperation.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceOperation.cs new file mode 100644 index 000000000000..9c14eec9c3b2 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceOperation.cs @@ -0,0 +1,59 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Description of an action supported by the Database Migration Service + /// + public partial class ServiceOperation + { + /// + /// Initializes a new instance of the ServiceOperation class. + /// + public ServiceOperation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServiceOperation class. + /// + + /// The fully qualified action name, e.g. Microsoft.DataMigration/services/read + /// + + /// Localized display text + /// + public ServiceOperation(string name = default(string), ServiceOperationDisplay display = default(ServiceOperationDisplay)) + + { + this.Name = name; + this.Display = display; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the fully qualified action name, e.g. + /// Microsoft.DataMigration/services/read + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets localized display text + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "display")] + public ServiceOperationDisplay Display {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceOperationDisplay.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceOperationDisplay.cs new file mode 100644 index 000000000000..b99f38040309 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceOperationDisplay.cs @@ -0,0 +1,78 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Localized display text + /// + public partial class ServiceOperationDisplay + { + /// + /// Initializes a new instance of the ServiceOperationDisplay class. + /// + public ServiceOperationDisplay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServiceOperationDisplay class. + /// + + /// The localized resource provider name + /// + + /// The localized resource type name + /// + + /// The localized operation name + /// + + /// The localized operation description + /// + public ServiceOperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) + + { + this.Provider = provider; + this.Resource = resource; + this.Operation = operation; + this.Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the localized resource provider name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "provider")] + public string Provider {get; set; } + + /// + /// Gets or sets the localized resource type name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "resource")] + public string Resource {get; set; } + + /// + /// Gets or sets the localized operation name + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "operation")] + public string Operation {get; set; } + + /// + /// Gets or sets the localized operation description + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "description")] + public string Description {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceProvisioningState.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceProvisioningState.cs new file mode 100644 index 000000000000..84dffa732522 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceProvisioningState.cs @@ -0,0 +1,27 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for ServiceProvisioningState. + /// + + + public static class ServiceProvisioningState + { + public const string Accepted = "Accepted"; + public const string Deleting = "Deleting"; + public const string Deploying = "Deploying"; + public const string Stopped = "Stopped"; + public const string Stopping = "Stopping"; + public const string Starting = "Starting"; + public const string FailedToStart = "FailedToStart"; + public const string FailedToStop = "FailedToStop"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceScalability.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceScalability.cs new file mode 100644 index 000000000000..737bfd043be0 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceScalability.cs @@ -0,0 +1,20 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for ServiceScalability. + /// + + + public static class ServiceScalability + { + public const string None = "none"; + public const string Manual = "manual"; + public const string Automatic = "automatic"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceSku.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceSku.cs new file mode 100644 index 000000000000..e17473207748 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ServiceSku.cs @@ -0,0 +1,96 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// An Azure SKU instance + /// + public partial class ServiceSku + { + /// + /// Initializes a new instance of the ServiceSku class. + /// + public ServiceSku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServiceSku class. + /// + + /// The unique name of the SKU, such as 'P3' + /// + + /// The tier of the SKU, such as 'Basic', 'General Purpose', or 'Business + /// Critical' + /// + + /// The SKU family, used when the service has multiple performance classes + /// within a tier, such as 'A', 'D', etc. for virtual machines + /// + + /// The size of the SKU, used when the name alone does not denote a service + /// size or when a SKU has multiple performance classes within a family, e.g. + /// 'A1' for virtual machines + /// + + /// The capacity of the SKU, if it supports scaling + /// + public ServiceSku(string name = default(string), string tier = default(string), string family = default(string), string size = default(string), int? capacity = default(int?)) + + { + this.Name = name; + this.Tier = tier; + this.Family = family; + this.Size = size; + this.Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the unique name of the SKU, such as 'P3' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; set; } + + /// + /// Gets or sets the tier of the SKU, such as 'Basic', 'General Purpose', or + /// 'Business Critical' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tier")] + public string Tier {get; set; } + + /// + /// Gets or sets the SKU family, used when the service has multiple performance + /// classes within a tier, such as 'A', 'D', etc. for virtual machines + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "family")] + public string Family {get; set; } + + /// + /// Gets or sets the size of the SKU, used when the name alone does not denote + /// a service size or when a SKU has multiple performance classes within a + /// family, e.g. 'A1' for virtual machines + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "size")] + public string Size {get; set; } + + /// + /// Gets or sets the capacity of the SKU, if it supports scaling + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "capacity")] + public int? Capacity {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Severity.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Severity.cs new file mode 100644 index 000000000000..394ece7a1083 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/Severity.cs @@ -0,0 +1,20 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for Severity. + /// + + + public static class Severity + { + public const string Message = "Message"; + public const string Warning = "Warning"; + public const string Error = "Error"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlConnectionInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlConnectionInfo.cs new file mode 100644 index 000000000000..6f329fa6ccf7 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlConnectionInfo.cs @@ -0,0 +1,126 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Information for connecting to SQL database server + /// + [Newtonsoft.Json.JsonObject("SqlConnectionInfo")] + public partial class SqlConnectionInfo : ConnectionInfo + { + /// + /// Initializes a new instance of the SqlConnectionInfo class. + /// + public SqlConnectionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlConnectionInfo class. + /// + + /// User name + /// + + /// Password credential. + /// + + /// Data source in the format + /// Protocol:MachineName\SQLServerInstanceName,PortNumber + /// + + /// Authentication type to use for connection + /// Possible values include: 'None', 'WindowsAuthentication', + /// 'SqlAuthentication', 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' + + /// Whether to encrypt the connection + /// + + /// Additional connection settings + /// + + /// Whether to trust the server certificate + /// + + /// Server platform type for connection + /// Possible values include: 'SqlOnPrem' + public SqlConnectionInfo(string dataSource, string userName = default(string), string password = default(string), string authentication = default(string), bool? encryptConnection = default(bool?), string additionalSettings = default(string), bool? trustServerCertificate = default(bool?), string platform = default(string)) + + : base(userName, password) + { + this.DataSource = dataSource; + this.Authentication = authentication; + this.EncryptConnection = encryptConnection; + this.AdditionalSettings = additionalSettings; + this.TrustServerCertificate = trustServerCertificate; + this.Platform = platform; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets data source in the format + /// Protocol:MachineName\SQLServerInstanceName,PortNumber + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "dataSource")] + public string DataSource {get; set; } + + /// + /// Gets or sets authentication type to use for connection Possible values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "authentication")] + public string Authentication {get; set; } + + /// + /// Gets or sets whether to encrypt the connection + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "encryptConnection")] + public bool? EncryptConnection {get; set; } + + /// + /// Gets or sets additional connection settings + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "additionalSettings")] + public string AdditionalSettings {get; set; } + + /// + /// Gets or sets whether to trust the server certificate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "trustServerCertificate")] + public bool? TrustServerCertificate {get; set; } + + /// + /// Gets or sets server platform type for connection Possible values include: 'SqlOnPrem' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "platform")] + public string Platform {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.DataSource == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "DataSource"); + } + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlMigrationTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlMigrationTaskInput.cs new file mode 100644 index 000000000000..c155d09f4546 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlMigrationTaskInput.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.DataMigration.Models +{ + using System.Linq; + + /// + /// Base class for migration task input + /// + public partial class SqlMigrationTaskInput + { + /// + /// Initializes a new instance of the SqlMigrationTaskInput class. + /// + public SqlMigrationTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlMigrationTaskInput class. + /// + + /// Information for connecting to source + /// + + /// Information for connecting to target + /// + public SqlMigrationTaskInput(SqlConnectionInfo sourceConnectionInfo, SqlConnectionInfo targetConnectionInfo) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets information for connecting to source + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public SqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets information for connecting to target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public SqlConnectionInfo TargetConnectionInfo {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlServerSqlMISyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlServerSqlMISyncTaskInput.cs new file mode 100644 index 000000000000..0ac2bc86514b --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlServerSqlMISyncTaskInput.cs @@ -0,0 +1,159 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for task that migrates SQL Server databases to Azure SQL Database + /// Managed Instance online scenario. + /// + public partial class SqlServerSqlMISyncTaskInput + { + /// + /// Initializes a new instance of the SqlServerSqlMISyncTaskInput class. + /// + public SqlServerSqlMISyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlServerSqlMISyncTaskInput class. + /// + + /// Databases to migrate + /// + + /// Backup file share information for all selected databases. + /// + + /// Fully qualified resourceId of storage + /// + + /// Connection information for source SQL Server + /// + + /// Connection information for Azure SQL Database Managed Instance + /// + + /// Azure Active Directory Application the DMS instance will use to connect to + /// the target instance of Azure SQL Database Managed Instance and the Azure + /// Storage Account + /// + public SqlServerSqlMISyncTaskInput(System.Collections.Generic.IList selectedDatabases, string storageResourceId, SqlConnectionInfo sourceConnectionInfo, MiSqlConnectionInfo targetConnectionInfo, AzureActiveDirectoryApp azureApp, FileShare backupFileShare = default(FileShare)) + + { + this.SelectedDatabases = selectedDatabases; + this.BackupFileShare = backupFileShare; + this.StorageResourceId = storageResourceId; + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + this.AzureApp = azureApp; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets databases to migrate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedDatabases")] + public System.Collections.Generic.IList SelectedDatabases {get; set; } + + /// + /// Gets or sets backup file share information for all selected databases. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupFileShare")] + public FileShare BackupFileShare {get; set; } + + /// + /// Gets or sets fully qualified resourceId of storage + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "storageResourceId")] + public string StorageResourceId {get; set; } + + /// + /// Gets or sets connection information for source SQL Server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public SqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets connection information for Azure SQL Database Managed Instance + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public MiSqlConnectionInfo TargetConnectionInfo {get; set; } + + /// + /// Gets or sets azure Active Directory Application the DMS instance will use + /// to connect to the target instance of Azure SQL Database Managed Instance + /// and the Azure Storage Account + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "azureApp")] + public AzureActiveDirectoryApp AzureApp {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SelectedDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedDatabases"); + } + if (this.StorageResourceId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "StorageResourceId"); + } + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.AzureApp == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "AzureApp"); + } + if (this.SelectedDatabases != null) + { + foreach (var element in this.SelectedDatabases) + { + if (element != null) + { + element.Validate(); + } + } + } + if (this.BackupFileShare != null) + { + this.BackupFileShare.Validate(); + } + + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + if (this.AzureApp != null) + { + this.AzureApp.Validate(); + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlSourcePlatform.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlSourcePlatform.cs new file mode 100644 index 000000000000..77c69cbab9b3 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SqlSourcePlatform.cs @@ -0,0 +1,18 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for SqlSourcePlatform. + /// + + + public static class SqlSourcePlatform + { + public const string SqlOnPrem = "SqlOnPrem"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/StartMigrationScenarioServerRoleResult.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/StartMigrationScenarioServerRoleResult.cs new file mode 100644 index 000000000000..c48fa277dfd1 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/StartMigrationScenarioServerRoleResult.cs @@ -0,0 +1,69 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Server role migration result + /// + public partial class StartMigrationScenarioServerRoleResult + { + /// + /// Initializes a new instance of the StartMigrationScenarioServerRoleResult class. + /// + public StartMigrationScenarioServerRoleResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StartMigrationScenarioServerRoleResult class. + /// + + /// Name of server role. + /// + + /// Current state of migration + /// Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + /// 'Completed', 'Skipped', 'Stopped' + + /// Migration exceptions and warnings. + /// + public StartMigrationScenarioServerRoleResult(string name = default(string), string state = default(string), System.Collections.Generic.IList exceptionsAndWarnings = default(System.Collections.Generic.IList)) + + { + this.Name = name; + this.State = state; + this.ExceptionsAndWarnings = exceptionsAndWarnings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets name of server role. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets current state of migration Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "state")] + public string State {get; private set; } + + /// + /// Gets migration exceptions and warnings. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "exceptionsAndWarnings")] + public System.Collections.Generic.IList ExceptionsAndWarnings {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SyncDatabaseMigrationReportingState.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SyncDatabaseMigrationReportingState.cs new file mode 100644 index 000000000000..7ac6a321e450 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SyncDatabaseMigrationReportingState.cs @@ -0,0 +1,28 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for SyncDatabaseMigrationReportingState. + /// + + + public static class SyncDatabaseMigrationReportingState + { + public const string Undefined = "UNDEFINED"; + public const string Configuring = "CONFIGURING"; + public const string Initialiazing = "INITIALIAZING"; + public const string Starting = "STARTING"; + public const string Running = "RUNNING"; + public const string ReadyTOComplete = "READY_TO_COMPLETE"; + public const string Completing = "COMPLETING"; + public const string Complete = "COMPLETE"; + public const string Cancelling = "CANCELLING"; + public const string Cancelled = "CANCELLED"; + public const string Failed = "FAILED"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SyncMigrationDatabaseErrorEvent.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SyncMigrationDatabaseErrorEvent.cs new file mode 100644 index 000000000000..e85ff461007e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SyncMigrationDatabaseErrorEvent.cs @@ -0,0 +1,68 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Database migration errors for online migration + /// + public partial class SyncMigrationDatabaseErrorEvent + { + /// + /// Initializes a new instance of the SyncMigrationDatabaseErrorEvent class. + /// + public SyncMigrationDatabaseErrorEvent() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SyncMigrationDatabaseErrorEvent class. + /// + + /// String value of timestamp. + /// + + /// Event type. + /// + + /// Event text. + /// + public SyncMigrationDatabaseErrorEvent(string timestampString = default(string), string eventTypeString = default(string), string eventText = default(string)) + + { + this.TimestampString = timestampString; + this.EventTypeString = eventTypeString; + this.EventText = eventText; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets string value of timestamp. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "timestampString")] + public string TimestampString {get; private set; } + + /// + /// Gets event type. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "eventTypeString")] + public string EventTypeString {get; private set; } + + /// + /// Gets event text. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "eventText")] + public string EventText {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SyncTableMigrationState.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SyncTableMigrationState.cs new file mode 100644 index 000000000000..f7e9384a84b9 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/SyncTableMigrationState.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.DataMigration.Models +{ + + /// + /// Defines values for SyncTableMigrationState. + /// + + + public static class SyncTableMigrationState + { + public const string BeforeLoad = "BEFORE_LOAD"; + public const string FullLoad = "FULL_LOAD"; + public const string Completed = "COMPLETED"; + public const string Canceled = "CANCELED"; + public const string Error = "ERROR"; + public const string Failed = "FAILED"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/TaskState.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/TaskState.cs new file mode 100644 index 000000000000..b99ef5eeabe3 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/TaskState.cs @@ -0,0 +1,25 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for TaskState. + /// + + + public static class TaskState + { + public const string Unknown = "Unknown"; + public const string Queued = "Queued"; + public const string Running = "Running"; + public const string Canceled = "Canceled"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string FailedInputValidation = "FailedInputValidation"; + public const string Faulted = "Faulted"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/TrackedResource.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/TrackedResource.cs new file mode 100644 index 000000000000..467542fad16b --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/TrackedResource.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.DataMigration.Models +{ + using System.Linq; + + /// + /// ARM tracked top level resource. + /// + public partial class TrackedResource : Resource + { + /// + /// Initializes a new instance of the TrackedResource class. + /// + public TrackedResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TrackedResource class. + /// + + /// Resource ID. + /// + + /// Resource name. + /// + + /// Resource type. + /// + + /// Resource tags. + /// + + /// Resource location. + /// + public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary)) + + : base(id, name, type) + { + this.Tags = tags; + this.Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets resource tags. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] + public System.Collections.Generic.IDictionary Tags {get; set; } + + /// + /// Gets or sets resource location. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + public string Location {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Location == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Location"); + } + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/UpdateActionType.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/UpdateActionType.cs new file mode 100644 index 000000000000..e60dcb8b341e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/UpdateActionType.cs @@ -0,0 +1,20 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for UpdateActionType. + /// + + + public static class UpdateActionType + { + public const string DeletedOnTarget = "DeletedOnTarget"; + public const string ChangedOnTarget = "ChangedOnTarget"; + public const string AddedOnTarget = "AddedOnTarget"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlDbSyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlDbSyncTaskProperties.cs new file mode 100644 index 000000000000..1c437b02d3ef --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlDbSyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for task that validates migration input for SQL to Azure SQL DB + /// sync migrations + /// + [Newtonsoft.Json.JsonObject("ValidateMigrationInput.SqlServer.SqlDb.Sync")] + public partial class ValidateMigrationInputSqlServerSqlDbSyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlDbSyncTaskProperties class. + /// + public ValidateMigrationInputSqlServerSqlDbSyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlDbSyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ValidateMigrationInputSqlServerSqlDbSyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ValidateSyncMigrationInputSqlServerTaskInput input = default(ValidateSyncMigrationInputSqlServerTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ValidateSyncMigrationInputSqlServerTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskInput.cs new file mode 100644 index 000000000000..d8a2b17c57fd --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskInput.cs @@ -0,0 +1,70 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for task that migrates SQL Server databases to Azure SQL Database + /// Managed Instance online scenario. + /// + public partial class ValidateMigrationInputSqlServerSqlMISyncTaskInput : SqlServerSqlMISyncTaskInput + { + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMISyncTaskInput class. + /// + public ValidateMigrationInputSqlServerSqlMISyncTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMISyncTaskInput class. + /// + + /// Databases to migrate + /// + + /// Backup file share information for all selected databases. + /// + + /// Fully qualified resourceId of storage + /// + + /// Connection information for source SQL Server + /// + + /// Connection information for Azure SQL Database Managed Instance + /// + + /// Azure Active Directory Application the DMS instance will use to connect to + /// the target instance of Azure SQL Database Managed Instance and the Azure + /// Storage Account + /// + public ValidateMigrationInputSqlServerSqlMISyncTaskInput(System.Collections.Generic.IList selectedDatabases, string storageResourceId, SqlConnectionInfo sourceConnectionInfo, MiSqlConnectionInfo targetConnectionInfo, AzureActiveDirectoryApp azureApp, FileShare backupFileShare = default(FileShare)) + + : base(selectedDatabases, storageResourceId, sourceConnectionInfo, targetConnectionInfo, azureApp, backupFileShare) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.cs new file mode 100644 index 000000000000..8659fd44b26c --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.cs @@ -0,0 +1,69 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for task that validates migration input for Azure SQL Database + /// Managed Instance online migration + /// + public partial class ValidateMigrationInputSqlServerSqlMISyncTaskOutput + { + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMISyncTaskOutput class. + /// + public ValidateMigrationInputSqlServerSqlMISyncTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMISyncTaskOutput class. + /// + + /// Database identifier + /// + + /// Name of database + /// + + /// Errors associated with a selected database object + /// + public ValidateMigrationInputSqlServerSqlMISyncTaskOutput(string id = default(string), string name = default(string), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.Id = id; + this.Name = name; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets database identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets name of database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets errors associated with a selected database object + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.cs new file mode 100644 index 000000000000..631c56b98260 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for task that validates migration input for SQL to Azure SQL + /// Database Managed Instance sync scenario + /// + [Newtonsoft.Json.JsonObject("ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS")] + public partial class ValidateMigrationInputSqlServerSqlMISyncTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMISyncTaskProperties class. + /// + public ValidateMigrationInputSqlServerSqlMISyncTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMISyncTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ValidateMigrationInputSqlServerSqlMISyncTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ValidateMigrationInputSqlServerSqlMISyncTaskInput input = default(ValidateMigrationInputSqlServerSqlMISyncTaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ValidateMigrationInputSqlServerSqlMISyncTaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskInput.cs new file mode 100644 index 000000000000..69ce6d7fc520 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskInput.cs @@ -0,0 +1,165 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for task that validates migration input for SQL to Azure SQL Managed + /// Instance + /// + public partial class ValidateMigrationInputSqlServerSqlMITaskInput + { + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMITaskInput class. + /// + public ValidateMigrationInputSqlServerSqlMITaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMITaskInput class. + /// + + /// Information for connecting to source + /// + + /// Information for connecting to target + /// + + /// Databases to migrate + /// + + /// Logins to migrate + /// + + /// Backup file share information for all selected databases. + /// + + /// SAS URI of Azure Storage Account Container to be used for storing backup + /// files. + /// + + /// Backup Mode to specify whether to use existing backup or create new backup. + /// Possible values include: 'CreateBackup', 'ExistingBackup' + public ValidateMigrationInputSqlServerSqlMITaskInput(SqlConnectionInfo sourceConnectionInfo, SqlConnectionInfo targetConnectionInfo, System.Collections.Generic.IList selectedDatabases, BlobShare backupBlobShare, System.Collections.Generic.IList selectedLogins = default(System.Collections.Generic.IList), FileShare backupFileShare = default(FileShare), string backupMode = default(string)) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + this.SelectedDatabases = selectedDatabases; + this.SelectedLogins = selectedLogins; + this.BackupFileShare = backupFileShare; + this.BackupBlobShare = backupBlobShare; + this.BackupMode = backupMode; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets information for connecting to source + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public SqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets information for connecting to target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public SqlConnectionInfo TargetConnectionInfo {get; set; } + + /// + /// Gets or sets databases to migrate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedDatabases")] + public System.Collections.Generic.IList SelectedDatabases {get; set; } + + /// + /// Gets or sets logins to migrate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedLogins")] + public System.Collections.Generic.IList SelectedLogins {get; set; } + + /// + /// Gets or sets backup file share information for all selected databases. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupFileShare")] + public FileShare BackupFileShare {get; set; } + + /// + /// Gets or sets sAS URI of Azure Storage Account Container to be used for + /// storing backup files. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupBlobShare")] + public BlobShare BackupBlobShare {get; set; } + + /// + /// Gets or sets backup Mode to specify whether to use existing backup or + /// create new backup. Possible values include: 'CreateBackup', 'ExistingBackup' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupMode")] + public string BackupMode {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.SelectedDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedDatabases"); + } + if (this.BackupBlobShare == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "BackupBlobShare"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + if (this.SelectedDatabases != null) + { + foreach (var element in this.SelectedDatabases) + { + if (element != null) + { + element.Validate(); + } + } + } + + if (this.BackupFileShare != null) + { + this.BackupFileShare.Validate(); + } + if (this.BackupBlobShare != null) + { + this.BackupBlobShare.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskOutput.cs new file mode 100644 index 000000000000..34b9e97cd4cf --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskOutput.cs @@ -0,0 +1,120 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for task that validates migration input for SQL to Azure SQL Managed + /// Instance migrations + /// + public partial class ValidateMigrationInputSqlServerSqlMITaskOutput + { + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMITaskOutput class. + /// + public ValidateMigrationInputSqlServerSqlMITaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMITaskOutput class. + /// + + /// Result identifier + /// + + /// Name of database + /// + + /// Errors associated with the RestoreDatabaseName + /// + + /// Errors associated with the BackupFolder path + /// + + /// Errors associated with backup share user name and password credentials + /// + + /// Errors associated with the storage account provided. + /// + + /// Errors associated with existing backup files. + /// + + /// Information about backup files when existing backup mode is used. + /// + public ValidateMigrationInputSqlServerSqlMITaskOutput(string id = default(string), string name = default(string), System.Collections.Generic.IList restoreDatabaseNameErrors = default(System.Collections.Generic.IList), System.Collections.Generic.IList backupFolderErrors = default(System.Collections.Generic.IList), System.Collections.Generic.IList backupShareCredentialsErrors = default(System.Collections.Generic.IList), System.Collections.Generic.IList backupStorageAccountErrors = default(System.Collections.Generic.IList), System.Collections.Generic.IList existingBackupErrors = default(System.Collections.Generic.IList), DatabaseBackupInfo databaseBackupInfo = default(DatabaseBackupInfo)) + + { + this.Id = id; + this.Name = name; + this.RestoreDatabaseNameErrors = restoreDatabaseNameErrors; + this.BackupFolderErrors = backupFolderErrors; + this.BackupShareCredentialsErrors = backupShareCredentialsErrors; + this.BackupStorageAccountErrors = backupStorageAccountErrors; + this.ExistingBackupErrors = existingBackupErrors; + this.DatabaseBackupInfo = databaseBackupInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets result identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets name of database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets errors associated with the RestoreDatabaseName + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "restoreDatabaseNameErrors")] + public System.Collections.Generic.IList RestoreDatabaseNameErrors {get; private set; } + + /// + /// Gets errors associated with the BackupFolder path + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupFolderErrors")] + public System.Collections.Generic.IList BackupFolderErrors {get; private set; } + + /// + /// Gets errors associated with backup share user name and password credentials + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupShareCredentialsErrors")] + public System.Collections.Generic.IList BackupShareCredentialsErrors {get; private set; } + + /// + /// Gets errors associated with the storage account provided. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "backupStorageAccountErrors")] + public System.Collections.Generic.IList BackupStorageAccountErrors {get; private set; } + + /// + /// Gets errors associated with existing backup files. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "existingBackupErrors")] + public System.Collections.Generic.IList ExistingBackupErrors {get; private set; } + + /// + /// Gets or sets information about backup files when existing backup mode is + /// used. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "databaseBackupInfo")] + public DatabaseBackupInfo DatabaseBackupInfo {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskProperties.cs new file mode 100644 index 000000000000..816d0be3ee10 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskProperties.cs @@ -0,0 +1,88 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for task that validates migration input for SQL to Azure SQL + /// Database Managed Instance + /// + [Newtonsoft.Json.JsonObject("ValidateMigrationInput.SqlServer.AzureSqlDbMI")] + public partial class ValidateMigrationInputSqlServerSqlMITaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMITaskProperties class. + /// + public ValidateMigrationInputSqlServerSqlMITaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateMigrationInputSqlServerSqlMITaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Task input + /// + + /// Task output. This is ignored if submitted. + /// + public ValidateMigrationInputSqlServerSqlMITaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), ValidateMigrationInputSqlServerSqlMITaskInput input = default(ValidateMigrationInputSqlServerSqlMITaskInput), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets task input + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public ValidateMigrationInputSqlServerSqlMITaskInput Input {get; set; } + + /// + /// Gets task output. This is ignored if submitted. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMongoDbTaskProperties.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMongoDbTaskProperties.cs new file mode 100644 index 000000000000..a078b0b135d1 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateMongoDbTaskProperties.cs @@ -0,0 +1,97 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Properties for the task that validates a migration between MongoDB data + /// sources + /// + [Newtonsoft.Json.JsonObject("Validate.MongoDb")] + public partial class ValidateMongoDbTaskProperties : ProjectTaskProperties + { + /// + /// Initializes a new instance of the ValidateMongoDbTaskProperties class. + /// + public ValidateMongoDbTaskProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateMongoDbTaskProperties class. + /// + + /// Array of errors. This is ignored if submitted. + /// + + /// The state of the task. This is ignored if submitted. + /// Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + /// 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + + /// Array of command properties. + /// + + /// Key value pairs of client data to attach meta data information to task + /// + + /// Describes how a MongoDB data migration should be performed + /// + + /// An array containing a single MongoDbMigrationProgress object + /// + public ValidateMongoDbTaskProperties(System.Collections.Generic.IList errors = default(System.Collections.Generic.IList), string state = default(string), System.Collections.Generic.IList commands = default(System.Collections.Generic.IList), System.Collections.Generic.IDictionary clientData = default(System.Collections.Generic.IDictionary), MongoDbMigrationSettings input = default(MongoDbMigrationSettings), System.Collections.Generic.IList output = default(System.Collections.Generic.IList)) + + : base(errors, state, commands, clientData) + { + this.Input = input; + this.Output = output; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets describes how a MongoDB data migration should be performed + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "input")] + public MongoDbMigrationSettings Input {get; set; } + + /// + /// Gets an array containing a single MongoDbMigrationProgress object + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "output")] + public System.Collections.Generic.IList Output {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.Input != null) + { + this.Input.Validate(); + } + if (this.Output != null) + { + foreach (var element in this.Output) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateSyncMigrationInputSqlServerTaskInput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateSyncMigrationInputSqlServerTaskInput.cs new file mode 100644 index 000000000000..349c8307cf12 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateSyncMigrationInputSqlServerTaskInput.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.DataMigration.Models +{ + using System.Linq; + + /// + /// Input for task that validates migration input for SQL sync migrations + /// + public partial class ValidateSyncMigrationInputSqlServerTaskInput + { + /// + /// Initializes a new instance of the ValidateSyncMigrationInputSqlServerTaskInput class. + /// + public ValidateSyncMigrationInputSqlServerTaskInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateSyncMigrationInputSqlServerTaskInput class. + /// + + /// Information for connecting to source SQL server + /// + + /// Information for connecting to target + /// + + /// Databases to migrate + /// + public ValidateSyncMigrationInputSqlServerTaskInput(SqlConnectionInfo sourceConnectionInfo, SqlConnectionInfo targetConnectionInfo, System.Collections.Generic.IList selectedDatabases) + + { + this.SourceConnectionInfo = sourceConnectionInfo; + this.TargetConnectionInfo = targetConnectionInfo; + this.SelectedDatabases = selectedDatabases; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets information for connecting to source SQL server + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sourceConnectionInfo")] + public SqlConnectionInfo SourceConnectionInfo {get; set; } + + /// + /// Gets or sets information for connecting to target + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "targetConnectionInfo")] + public SqlConnectionInfo TargetConnectionInfo {get; set; } + + /// + /// Gets or sets databases to migrate + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "selectedDatabases")] + public System.Collections.Generic.IList SelectedDatabases {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.SourceConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SourceConnectionInfo"); + } + if (this.TargetConnectionInfo == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "TargetConnectionInfo"); + } + if (this.SelectedDatabases == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "SelectedDatabases"); + } + if (this.SourceConnectionInfo != null) + { + this.SourceConnectionInfo.Validate(); + } + if (this.TargetConnectionInfo != null) + { + this.TargetConnectionInfo.Validate(); + } + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateSyncMigrationInputSqlServerTaskOutput.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateSyncMigrationInputSqlServerTaskOutput.cs new file mode 100644 index 000000000000..913bc08bb462 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidateSyncMigrationInputSqlServerTaskOutput.cs @@ -0,0 +1,68 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Output for task that validates migration input for SQL sync migrations + /// + public partial class ValidateSyncMigrationInputSqlServerTaskOutput + { + /// + /// Initializes a new instance of the ValidateSyncMigrationInputSqlServerTaskOutput class. + /// + public ValidateSyncMigrationInputSqlServerTaskOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidateSyncMigrationInputSqlServerTaskOutput class. + /// + + /// Database identifier + /// + + /// Name of database + /// + + /// Errors associated with a selected database object + /// + public ValidateSyncMigrationInputSqlServerTaskOutput(string id = default(string), string name = default(string), System.Collections.Generic.IList validationErrors = default(System.Collections.Generic.IList)) + + { + this.Id = id; + this.Name = name; + this.ValidationErrors = validationErrors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets database identifier + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + public string Id {get; private set; } + + /// + /// Gets name of database + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + public string Name {get; private set; } + + /// + /// Gets errors associated with a selected database object + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "validationErrors")] + public System.Collections.Generic.IList ValidationErrors {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidationError.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidationError.cs new file mode 100644 index 000000000000..bdea678e76cf --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidationError.cs @@ -0,0 +1,58 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Description about the errors happen while performing migration validation + /// + public partial class ValidationError + { + /// + /// Initializes a new instance of the ValidationError class. + /// + public ValidationError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ValidationError class. + /// + + /// Error Text + /// + + /// Severity of the error + /// Possible values include: 'Message', 'Warning', 'Error' + public ValidationError(string text = default(string), string severity = default(string)) + + { + this.Text = text; + this.Severity = severity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets error Text + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "text")] + public string Text {get; set; } + + /// + /// Gets or sets severity of the error Possible values include: 'Message', 'Warning', 'Error' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "severity")] + public string Severity {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidationStatus.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidationStatus.cs new file mode 100644 index 000000000000..646d95dee656 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/ValidationStatus.cs @@ -0,0 +1,25 @@ +// 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.DataMigration.Models +{ + + /// + /// Defines values for ValidationStatus. + /// + + + public static class ValidationStatus + { + public const string Default = "Default"; + public const string NotStarted = "NotStarted"; + public const string Initialized = "Initialized"; + public const string InProgress = "InProgress"; + public const string Completed = "Completed"; + public const string CompletedWithIssues = "CompletedWithIssues"; + public const string Stopped = "Stopped"; + public const string Failed = "Failed"; + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/WaitStatistics.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/WaitStatistics.cs new file mode 100644 index 000000000000..641ce949ae7e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Models/WaitStatistics.cs @@ -0,0 +1,68 @@ +// 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.DataMigration.Models +{ + using System.Linq; + + /// + /// Wait statistics gathered during query batch execution + /// + public partial class WaitStatistics + { + /// + /// Initializes a new instance of the WaitStatistics class. + /// + public WaitStatistics() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WaitStatistics class. + /// + + /// Type of the Wait + /// + + /// Total wait time in millisecond(s) + /// + + /// Total no. of waits + /// + public WaitStatistics(string waitType = default(string), double? waitTimeMS = default(double?), long? waitCount = default(long?)) + + { + this.WaitType = waitType; + this.WaitTimeMS = waitTimeMS; + this.WaitCount = waitCount; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets type of the Wait + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "waitType")] + public string WaitType {get; set; } + + /// + /// Gets or sets total wait time in millisecond(s) + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "waitTimeMs")] + public double? WaitTimeMS {get; set; } + + /// + /// Gets or sets total no. of waits + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "waitCount")] + public long? WaitCount {get; set; } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/Operations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/Operations.cs new file mode 100644 index 000000000000..c0d353e8ca0f --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/Operations.cs @@ -0,0 +1,403 @@ +// 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.DataMigration +{ + using System.Linq; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// Operations operations. + /// + internal partial class Operations : Microsoft.Rest.IServiceOperations, IOperations + { + /// + /// Initializes a new instance of the Operations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal Operations (DataMigrationServiceClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + this.Client = client; + } + + /// + /// Gets a reference to the DataMigrationServiceClient + /// + public DataMigrationServiceClient Client { get; private set; } + + /// + /// Lists all available actions exposed by the Database Migration Service + /// resource provider. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.DataMigration/operations").ToString(); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// Lists all available actions exposed by the Database Migration Service + /// resource provider. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/OperationsExtensions.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/OperationsExtensions.cs new file mode 100644 index 000000000000..517042c61001 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/OperationsExtensions.cs @@ -0,0 +1,80 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// Extension methods for Operations + /// + public static partial class OperationsExtensions + { + /// + /// Lists all available actions exposed by the Database Migration Service + /// resource provider. + /// + /// + /// The operations group for this extension method. + /// + public static Microsoft.Rest.Azure.IPage List(this IOperations operations) + { + return ((IOperations)operations).ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all available actions exposed by the Database Migration Service + /// resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListAsync(this IOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Lists all available actions exposed by the Database Migration Service + /// resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListNext(this IOperations operations, string nextPageLink) + { + return ((IOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all available actions exposed by the Database Migration Service + /// resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListNextAsync(this IOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } +} diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/ProjectsOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/ProjectsOperations.cs new file mode 100644 index 000000000000..be0f55ab327f --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/ProjectsOperations.cs @@ -0,0 +1,1345 @@ +// 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.DataMigration +{ + using System.Linq; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// ProjectsOperations operations. + /// + internal partial class ProjectsOperations : Microsoft.Rest.IServiceOperations, IProjectsOperations + { + /// + /// Initializes a new instance of the ProjectsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ProjectsOperations (DataMigrationServiceClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + this.Client = client; + } + + /// + /// Gets a reference to the DataMigrationServiceClient + /// + public DataMigrationServiceClient Client { get; private set; } + + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of projects owned by a service + /// resource. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. The PUT method creates a new project or updates an existing one. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Information about the project + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, Project parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. The GET method retrieves information about a project. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string groupName, string serviceName, string projectName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. The DELETE method deletes a project. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string groupName, string serviceName, string projectName, bool? deleteRunningTasks = default(bool?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("deleteRunningTasks", deleteRunningTasks); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (deleteRunningTasks != null) + { + _queryParameters.Add(string.Format("deleteRunningTasks={0}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(deleteRunningTasks, this.Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. The PATCH method updates an existing project. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Information about the project + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, Project parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of projects owned by a service + /// resource. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/ProjectsOperationsExtensions.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/ProjectsOperationsExtensions.cs new file mode 100644 index 000000000000..fc6a84b2ae55 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/ProjectsOperationsExtensions.cs @@ -0,0 +1,287 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// Extension methods for ProjectsOperations + /// + public static partial class ProjectsOperationsExtensions + { + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of projects owned by a service + /// resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static Microsoft.Rest.Azure.IPage List(this IProjectsOperations operations, string groupName, string serviceName) + { + return ((IProjectsOperations)operations).ListAsync(groupName, serviceName).GetAwaiter().GetResult(); + } + + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of projects owned by a service + /// resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListAsync(this IProjectsOperations operations, string groupName, string serviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(groupName, serviceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. The PUT method creates a new project or updates an existing one. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + public static Project CreateOrUpdate(this IProjectsOperations operations, string groupName, string serviceName, string projectName, Project parameters) + { + return ((IProjectsOperations)operations).CreateOrUpdateAsync(groupName, serviceName, projectName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The project resource is a nested resource representing a stored migration + /// project. The PUT method creates a new project or updates an existing one. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this IProjectsOperations operations, string groupName, string serviceName, string projectName, Project parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(groupName, serviceName, projectName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. The GET method retrieves information about a project. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + public static Project Get(this IProjectsOperations operations, string groupName, string serviceName, string projectName) + { + return ((IProjectsOperations)operations).GetAsync(groupName, serviceName, projectName).GetAwaiter().GetResult(); + } + + /// + /// The project resource is a nested resource representing a stored migration + /// project. The GET method retrieves information about a project. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task GetAsync(this IProjectsOperations operations, string groupName, string serviceName, string projectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(groupName, serviceName, projectName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. The DELETE method deletes a project. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Delete the resource even if it contains running tasks + /// + public static void Delete(this IProjectsOperations operations, string groupName, string serviceName, string projectName, bool? deleteRunningTasks = default(bool?)) + { + ((IProjectsOperations)operations).DeleteAsync(groupName, serviceName, projectName, deleteRunningTasks).GetAwaiter().GetResult(); + } + + /// + /// The project resource is a nested resource representing a stored migration + /// project. The DELETE method deletes a project. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task DeleteAsync(this IProjectsOperations operations, string groupName, string serviceName, string projectName, bool? deleteRunningTasks = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(groupName, serviceName, projectName, deleteRunningTasks, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. The PATCH method updates an existing project. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + public static Project Update(this IProjectsOperations operations, string groupName, string serviceName, string projectName, Project parameters) + { + return ((IProjectsOperations)operations).UpdateAsync(groupName, serviceName, projectName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The project resource is a nested resource representing a stored migration + /// project. The PATCH method updates an existing project. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task UpdateAsync(this IProjectsOperations operations, string groupName, string serviceName, string projectName, Project parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(groupName, serviceName, projectName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of projects owned by a service + /// resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListNext(this IProjectsOperations operations, string nextPageLink) + { + return ((IProjectsOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// The project resource is a nested resource representing a stored migration + /// project. This method returns a list of projects owned by a service + /// resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListNextAsync(this IProjectsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } +} diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/ResourceSkusOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/ResourceSkusOperations.cs new file mode 100644 index 000000000000..a0163b0e2e62 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/ResourceSkusOperations.cs @@ -0,0 +1,407 @@ +// 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.DataMigration +{ + using System.Linq; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// ResourceSkusOperations operations. + /// + internal partial class ResourceSkusOperations : Microsoft.Rest.IServiceOperations, IResourceSkusOperations + { + /// + /// Initializes a new instance of the ResourceSkusOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ResourceSkusOperations (DataMigrationServiceClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + this.Client = client; + } + + /// + /// Gets a reference to the DataMigrationServiceClient + /// + public DataMigrationServiceClient Client { get; private set; } + + /// + /// The skus action returns the list of SKUs that DMS supports. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListSkusWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListSkus", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/skus").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The skus action returns the list of SKUs that DMS supports. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListSkusNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListSkusNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/ResourceSkusOperationsExtensions.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/ResourceSkusOperationsExtensions.cs new file mode 100644 index 000000000000..02ebb8c7c0a3 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/ResourceSkusOperationsExtensions.cs @@ -0,0 +1,76 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// Extension methods for ResourceSkusOperations + /// + public static partial class ResourceSkusOperationsExtensions + { + /// + /// The skus action returns the list of SKUs that DMS supports. + /// + /// + /// The operations group for this extension method. + /// + public static Microsoft.Rest.Azure.IPage ListSkus(this IResourceSkusOperations operations) + { + return ((IResourceSkusOperations)operations).ListSkusAsync().GetAwaiter().GetResult(); + } + + /// + /// The skus action returns the list of SKUs that DMS supports. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListSkusAsync(this IResourceSkusOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListSkusWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The skus action returns the list of SKUs that DMS supports. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListSkusNext(this IResourceSkusOperations operations, string nextPageLink) + { + return ((IResourceSkusOperations)operations).ListSkusNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// The skus action returns the list of SKUs that DMS supports. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListSkusNextAsync(this IResourceSkusOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListSkusNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } +} diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/ServicesOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/ServicesOperations.cs new file mode 100644 index 000000000000..2b216034d19b --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/ServicesOperations.cs @@ -0,0 +1,3232 @@ +// 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.DataMigration +{ + using System.Linq; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// ServicesOperations operations. + /// + internal partial class ServicesOperations : Microsoft.Rest.IServiceOperations, IServicesOperations + { + /// + /// Initializes a new instance of the ServicesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ServicesOperations (DataMigrationServiceClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + this.Client = client; + } + + /// + /// Gets a reference to the DataMigrationServiceClient + /// + public DataMigrationServiceClient Client { get; private set; } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PUT method creates a new service or updates + /// an existing one. When a service is updated, existing child resources (i.e. + /// tasks) are unaffected. Services currently support a single kind, "vm", + /// which refers to a VM-based service, although other kinds may be added in + /// the future. This method can change the kind, SKU, and network of the + /// service, but if tasks are currently running (i.e. the service is busy), + /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will + /// reply when successful with 200 OK or 201 Created. Long-running operations + /// use the provisioningState property. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Information about the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string groupName, string serviceName, DataMigrationService parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(groupName, serviceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The GET method retrieves information about a + /// service instance. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The DELETE method deletes a service. Any + /// running tasks will be canceled. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string groupName, string serviceName, bool? deleteRunningTasks = default(bool?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(groupName, serviceName, deleteRunningTasks, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PATCH method updates an existing service. + /// This method can change the kind, SKU, and network of the service, but if + /// tasks are currently running (i.e. the service is busy), this will fail with + /// 400 Bad Request ("ServiceIsBusy"). + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Information about the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string groupName, string serviceName, DataMigrationService parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(groupName, serviceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action performs a health check and returns + /// the status of the service and virtual machine size. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> CheckStatusWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CheckStatus", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkStatus").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action starts the service and the service + /// can be used for data migration. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task StartWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginStartWithHttpMessagesAsync(groupName, serviceName, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action stops the service and the service + /// cannot be used for data migration. The service owner won't be billed when + /// the service is stopped. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task StopWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginStopWithHttpMessagesAsync(groupName, serviceName, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The skus action returns the list of SKUs that a + /// service resource can be updated to. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListSkusWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListSkus", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/skus").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// This method checks whether a proposed nested resource name is valid and + /// available. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Requested name to validate + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> CheckChildrenNameAvailabilityWithHttpMessagesAsync(string groupName, string serviceName, NameAvailabilityRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CheckChildrenNameAvailability", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkNameAvailability").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The Services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a resource group. + /// + /// + /// Name of the resource group + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string groupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a subscription. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// This method checks whether a proposed top-level resource name is valid and + /// available. + /// + /// + /// The Azure region of the operation + /// + /// + /// Requested name to validate + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> CheckNameAvailabilityWithHttpMessagesAsync(string location, NameAvailabilityRequest parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (location == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "location"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("location", location); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PUT method creates a new service or updates + /// an existing one. When a service is updated, existing child resources (i.e. + /// tasks) are unaffected. Services currently support a single kind, "vm", + /// which refers to a VM-based service, although other kinds may be added in + /// the future. This method can change the kind, SKU, and network of the + /// service, but if tasks are currently running (i.e. the service is busy), + /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will + /// reply when successful with 200 OK or 201 Created. Long-running operations + /// use the provisioningState property. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Information about the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string groupName, string serviceName, DataMigrationService parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The DELETE method deletes a service. Any + /// running tasks will be canceled. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string groupName, string serviceName, bool? deleteRunningTasks = default(bool?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("deleteRunningTasks", deleteRunningTasks); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (deleteRunningTasks != null) + { + _queryParameters.Add(string.Format("deleteRunningTasks={0}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(deleteRunningTasks, this.Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PATCH method updates an existing service. + /// This method can change the kind, SKU, and network of the service, but if + /// tasks are currently running (i.e. the service is busy), this will fail with + /// 400 Bad Request ("ServiceIsBusy"). + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Information about the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string groupName, string serviceName, DataMigrationService parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action starts the service and the service + /// can be used for data migration. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task BeginStartWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginStart", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/start").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action stops the service and the service + /// cannot be used for data migration. The service owner won't be billed when + /// the service is stopped. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task BeginStopWithHttpMessagesAsync(string groupName, string serviceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginStop", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/stop").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The skus action returns the list of SKUs that a + /// service resource can be updated to. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListSkusNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListSkusNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The Services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/ServicesOperationsExtensions.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/ServicesOperationsExtensions.cs new file mode 100644 index 000000000000..12f3169b9d6a --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/ServicesOperationsExtensions.cs @@ -0,0 +1,864 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// Extension methods for ServicesOperations + /// + public static partial class ServicesOperationsExtensions + { + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PUT method creates a new service or updates + /// an existing one. When a service is updated, existing child resources (i.e. + /// tasks) are unaffected. Services currently support a single kind, "vm", + /// which refers to a VM-based service, although other kinds may be added in + /// the future. This method can change the kind, SKU, and network of the + /// service, but if tasks are currently running (i.e. the service is busy), + /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will + /// reply when successful with 200 OK or 201 Created. Long-running operations + /// use the provisioningState property. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static DataMigrationService CreateOrUpdate(this IServicesOperations operations, string groupName, string serviceName, DataMigrationService parameters) + { + return ((IServicesOperations)operations).CreateOrUpdateAsync(groupName, serviceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PUT method creates a new service or updates + /// an existing one. When a service is updated, existing child resources (i.e. + /// tasks) are unaffected. Services currently support a single kind, "vm", + /// which refers to a VM-based service, although other kinds may be added in + /// the future. This method can change the kind, SKU, and network of the + /// service, but if tasks are currently running (i.e. the service is busy), + /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will + /// reply when successful with 200 OK or 201 Created. Long-running operations + /// use the provisioningState property. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this IServicesOperations operations, string groupName, string serviceName, DataMigrationService parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(groupName, serviceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The GET method retrieves information about a + /// service instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static DataMigrationService Get(this IServicesOperations operations, string groupName, string serviceName) + { + return ((IServicesOperations)operations).GetAsync(groupName, serviceName).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The GET method retrieves information about a + /// service instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task GetAsync(this IServicesOperations operations, string groupName, string serviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(groupName, serviceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The DELETE method deletes a service. Any + /// running tasks will be canceled. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Delete the resource even if it contains running tasks + /// + public static void Delete(this IServicesOperations operations, string groupName, string serviceName, bool? deleteRunningTasks = default(bool?)) + { + ((IServicesOperations)operations).DeleteAsync(groupName, serviceName, deleteRunningTasks).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The DELETE method deletes a service. Any + /// running tasks will be canceled. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task DeleteAsync(this IServicesOperations operations, string groupName, string serviceName, bool? deleteRunningTasks = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(groupName, serviceName, deleteRunningTasks, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PATCH method updates an existing service. + /// This method can change the kind, SKU, and network of the service, but if + /// tasks are currently running (i.e. the service is busy), this will fail with + /// 400 Bad Request ("ServiceIsBusy"). + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static DataMigrationService Update(this IServicesOperations operations, string groupName, string serviceName, DataMigrationService parameters) + { + return ((IServicesOperations)operations).UpdateAsync(groupName, serviceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PATCH method updates an existing service. + /// This method can change the kind, SKU, and network of the service, but if + /// tasks are currently running (i.e. the service is busy), this will fail with + /// 400 Bad Request ("ServiceIsBusy"). + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task UpdateAsync(this IServicesOperations operations, string groupName, string serviceName, DataMigrationService parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(groupName, serviceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action performs a health check and returns + /// the status of the service and virtual machine size. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static DataMigrationServiceStatusResponse CheckStatus(this IServicesOperations operations, string groupName, string serviceName) + { + return ((IServicesOperations)operations).CheckStatusAsync(groupName, serviceName).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action performs a health check and returns + /// the status of the service and virtual machine size. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task CheckStatusAsync(this IServicesOperations operations, string groupName, string serviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.CheckStatusWithHttpMessagesAsync(groupName, serviceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action starts the service and the service + /// can be used for data migration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static void Start(this IServicesOperations operations, string groupName, string serviceName) + { + ((IServicesOperations)operations).StartAsync(groupName, serviceName).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action starts the service and the service + /// can be used for data migration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task StartAsync(this IServicesOperations operations, string groupName, string serviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + (await operations.StartWithHttpMessagesAsync(groupName, serviceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action stops the service and the service + /// cannot be used for data migration. The service owner won't be billed when + /// the service is stopped. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static void Stop(this IServicesOperations operations, string groupName, string serviceName) + { + ((IServicesOperations)operations).StopAsync(groupName, serviceName).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action stops the service and the service + /// cannot be used for data migration. The service owner won't be billed when + /// the service is stopped. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task StopAsync(this IServicesOperations operations, string groupName, string serviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + (await operations.StopWithHttpMessagesAsync(groupName, serviceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The skus action returns the list of SKUs that a + /// service resource can be updated to. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static Microsoft.Rest.Azure.IPage ListSkus(this IServicesOperations operations, string groupName, string serviceName) + { + return ((IServicesOperations)operations).ListSkusAsync(groupName, serviceName).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The skus action returns the list of SKUs that a + /// service resource can be updated to. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListSkusAsync(this IServicesOperations operations, string groupName, string serviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListSkusWithHttpMessagesAsync(groupName, serviceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// This method checks whether a proposed nested resource name is valid and + /// available. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static NameAvailabilityResponse CheckChildrenNameAvailability(this IServicesOperations operations, string groupName, string serviceName, NameAvailabilityRequest parameters) + { + return ((IServicesOperations)operations).CheckChildrenNameAvailabilityAsync(groupName, serviceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// This method checks whether a proposed nested resource name is valid and + /// available. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task CheckChildrenNameAvailabilityAsync(this IServicesOperations operations, string groupName, string serviceName, NameAvailabilityRequest parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.CheckChildrenNameAvailabilityWithHttpMessagesAsync(groupName, serviceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The Services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + public static Microsoft.Rest.Azure.IPage ListByResourceGroup(this IServicesOperations operations, string groupName) + { + return ((IServicesOperations)operations).ListByResourceGroupAsync(groupName).GetAwaiter().GetResult(); + } + + /// + /// The Services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListByResourceGroupAsync(this IServicesOperations operations, string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(groupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a subscription. + /// + /// + /// The operations group for this extension method. + /// + public static Microsoft.Rest.Azure.IPage List(this IServicesOperations operations) + { + return ((IServicesOperations)operations).ListAsync().GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListAsync(this IServicesOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// This method checks whether a proposed top-level resource name is valid and + /// available. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The Azure region of the operation + /// + public static NameAvailabilityResponse CheckNameAvailability(this IServicesOperations operations, string location, NameAvailabilityRequest parameters) + { + return ((IServicesOperations)operations).CheckNameAvailabilityAsync(location, parameters).GetAwaiter().GetResult(); + } + + /// + /// This method checks whether a proposed top-level resource name is valid and + /// available. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The Azure region of the operation + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task CheckNameAvailabilityAsync(this IServicesOperations operations, string location, NameAvailabilityRequest parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(location, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PUT method creates a new service or updates + /// an existing one. When a service is updated, existing child resources (i.e. + /// tasks) are unaffected. Services currently support a single kind, "vm", + /// which refers to a VM-based service, although other kinds may be added in + /// the future. This method can change the kind, SKU, and network of the + /// service, but if tasks are currently running (i.e. the service is busy), + /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will + /// reply when successful with 200 OK or 201 Created. Long-running operations + /// use the provisioningState property. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static DataMigrationService BeginCreateOrUpdate(this IServicesOperations operations, string groupName, string serviceName, DataMigrationService parameters) + { + return ((IServicesOperations)operations).BeginCreateOrUpdateAsync(groupName, serviceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PUT method creates a new service or updates + /// an existing one. When a service is updated, existing child resources (i.e. + /// tasks) are unaffected. Services currently support a single kind, "vm", + /// which refers to a VM-based service, although other kinds may be added in + /// the future. This method can change the kind, SKU, and network of the + /// service, but if tasks are currently running (i.e. the service is busy), + /// this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will + /// reply when successful with 200 OK or 201 Created. Long-running operations + /// use the provisioningState property. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task BeginCreateOrUpdateAsync(this IServicesOperations operations, string groupName, string serviceName, DataMigrationService parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(groupName, serviceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The DELETE method deletes a service. Any + /// running tasks will be canceled. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Delete the resource even if it contains running tasks + /// + public static void BeginDelete(this IServicesOperations operations, string groupName, string serviceName, bool? deleteRunningTasks = default(bool?)) + { + ((IServicesOperations)operations).BeginDeleteAsync(groupName, serviceName, deleteRunningTasks).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The DELETE method deletes a service. Any + /// running tasks will be canceled. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task BeginDeleteAsync(this IServicesOperations operations, string groupName, string serviceName, bool? deleteRunningTasks = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(groupName, serviceName, deleteRunningTasks, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PATCH method updates an existing service. + /// This method can change the kind, SKU, and network of the service, but if + /// tasks are currently running (i.e. the service is busy), this will fail with + /// 400 Bad Request ("ServiceIsBusy"). + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static DataMigrationService BeginUpdate(this IServicesOperations operations, string groupName, string serviceName, DataMigrationService parameters) + { + return ((IServicesOperations)operations).BeginUpdateAsync(groupName, serviceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The PATCH method updates an existing service. + /// This method can change the kind, SKU, and network of the service, but if + /// tasks are currently running (i.e. the service is busy), this will fail with + /// 400 Bad Request ("ServiceIsBusy"). + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task BeginUpdateAsync(this IServicesOperations operations, string groupName, string serviceName, DataMigrationService parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(groupName, serviceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action starts the service and the service + /// can be used for data migration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static void BeginStart(this IServicesOperations operations, string groupName, string serviceName) + { + ((IServicesOperations)operations).BeginStartAsync(groupName, serviceName).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action starts the service and the service + /// can be used for data migration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task BeginStartAsync(this IServicesOperations operations, string groupName, string serviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + (await operations.BeginStartWithHttpMessagesAsync(groupName, serviceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action stops the service and the service + /// cannot be used for data migration. The service owner won't be billed when + /// the service is stopped. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + public static void BeginStop(this IServicesOperations operations, string groupName, string serviceName) + { + ((IServicesOperations)operations).BeginStopAsync(groupName, serviceName).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This action stops the service and the service + /// cannot be used for data migration. The service owner won't be billed when + /// the service is stopped. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task BeginStopAsync(this IServicesOperations operations, string groupName, string serviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + (await operations.BeginStopWithHttpMessagesAsync(groupName, serviceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The skus action returns the list of SKUs that a + /// service resource can be updated to. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListSkusNext(this IServicesOperations operations, string nextPageLink) + { + return ((IServicesOperations)operations).ListSkusNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. The skus action returns the list of SKUs that a + /// service resource can be updated to. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListSkusNextAsync(this IServicesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListSkusNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The Services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(this IServicesOperations operations, string nextPageLink) + { + return ((IServicesOperations)operations).ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// The Services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListByResourceGroupNextAsync(this IServicesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListNext(this IServicesOperations operations, string nextPageLink) + { + return ((IServicesOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of service resources + /// in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListNextAsync(this IServicesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } +} diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/TasksOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/TasksOperations.cs new file mode 100644 index 000000000000..8373c22a075e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/TasksOperations.cs @@ -0,0 +1,1893 @@ +// 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.DataMigration +{ + using System.Linq; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// TasksOperations operations. + /// + internal partial class TasksOperations : Microsoft.Rest.IServiceOperations, ITasksOperations + { + /// + /// Initializes a new instance of the TasksOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal TasksOperations (DataMigrationServiceClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + this.Client = client; + } + + /// + /// Gets a reference to the DataMigrationServiceClient + /// + public DataMigrationServiceClient Client { get; private set; } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of 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. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Filter tasks by task type + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskType = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("taskType", taskType); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (taskType != null) + { + _queryParameters.Add(string.Format("taskType={0}", System.Uri.EscapeDataString(taskType))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The PUT method creates a new task or updates + /// an existing one, although since tasks have no mutable custom properties, + /// there is little reason to update an existing one. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Information about the task + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, ProjectTask parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (taskName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "taskName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("taskName", taskName); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{taskName}", System.Uri.EscapeDataString(taskName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The GET method retrieves information about a + /// task. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Expand the response + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, string expand = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (taskName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "taskName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("taskName", taskName); + tracingParameters.Add("expand", expand); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{taskName}", System.Uri.EscapeDataString(taskName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The DELETE method deletes a task, canceling it + /// first if it's running. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, bool? deleteRunningTasks = default(bool?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (taskName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "taskName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("taskName", taskName); + tracingParameters.Add("deleteRunningTasks", deleteRunningTasks); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{taskName}", System.Uri.EscapeDataString(taskName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (deleteRunningTasks != null) + { + _queryParameters.Add(string.Format("deleteRunningTasks={0}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(deleteRunningTasks, this.Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The PATCH method updates an existing task, but + /// since tasks have no mutable custom properties, there is little reason to do + /// so. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Information about the task + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, ProjectTask parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (taskName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "taskName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("taskName", taskName); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{taskName}", System.Uri.EscapeDataString(taskName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. This method cancels a task if it's currently + /// queued or running. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> CancelWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (taskName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "taskName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("taskName", taskName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Cancel", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/cancel").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{taskName}", System.Uri.EscapeDataString(taskName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. This method executes a command on a running + /// task. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Command to execute + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> CommandWithHttpMessagesAsync(string groupName, string serviceName, string projectName, string taskName, CommandProperties parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (parameters == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + } + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (groupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "groupName"); + } + + if (serviceName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "serviceName"); + } + + if (projectName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "projectName"); + } + + if (taskName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "taskName"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("serviceName", serviceName); + tracingParameters.Add("projectName", projectName); + tracingParameters.Add("taskName", taskName); + + tracingParameters.Add("parameters", parameters); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Command", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/command").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{serviceName}", System.Uri.EscapeDataString(serviceName)); + _url = _url.Replace("{projectName}", System.Uri.EscapeDataString(projectName)); + _url = _url.Replace("{taskName}", System.Uri.EscapeDataString(taskName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of 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. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/TasksOperationsExtensions.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/TasksOperationsExtensions.cs new file mode 100644 index 000000000000..12c498a62d34 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/TasksOperationsExtensions.cs @@ -0,0 +1,455 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// Extension methods for TasksOperations + /// + public static partial class TasksOperationsExtensions + { + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of 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. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Filter tasks by task type + /// + public static Microsoft.Rest.Azure.IPage List(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskType = default(string)) + { + return ((ITasksOperations)operations).ListAsync(groupName, serviceName, projectName, taskType).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of 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. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Filter tasks by task type + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListAsync(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskType = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(groupName, serviceName, projectName, taskType, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The PUT method creates a new task or updates + /// an existing one, although since tasks have no mutable custom properties, + /// there is little reason to update an existing one. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + public static ProjectTask CreateOrUpdate(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, ProjectTask parameters) + { + return ((ITasksOperations)operations).CreateOrUpdateAsync(groupName, serviceName, projectName, taskName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The PUT method creates a new task or updates + /// an existing one, although since tasks have no mutable custom properties, + /// there is little reason to update an existing one. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, ProjectTask parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(groupName, serviceName, projectName, taskName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The GET method retrieves information about a + /// task. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Expand the response + /// + public static ProjectTask Get(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, string expand = default(string)) + { + return ((ITasksOperations)operations).GetAsync(groupName, serviceName, projectName, taskName, expand).GetAwaiter().GetResult(); + } + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The GET method retrieves information about a + /// task. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Expand the response + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task GetAsync(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, string expand = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(groupName, serviceName, projectName, taskName, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The DELETE method deletes a task, canceling it + /// first if it's running. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Delete the resource even if it contains running tasks + /// + public static void Delete(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, bool? deleteRunningTasks = default(bool?)) + { + ((ITasksOperations)operations).DeleteAsync(groupName, serviceName, projectName, taskName, deleteRunningTasks).GetAwaiter().GetResult(); + } + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The DELETE method deletes a task, canceling it + /// first if it's running. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// Delete the resource even if it contains running tasks + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task DeleteAsync(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, bool? deleteRunningTasks = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(groupName, serviceName, projectName, taskName, deleteRunningTasks, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The PATCH method updates an existing task, but + /// since tasks have no mutable custom properties, there is little reason to do + /// so. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + public static ProjectTask Update(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, ProjectTask parameters) + { + return ((ITasksOperations)operations).UpdateAsync(groupName, serviceName, projectName, taskName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. The PATCH method updates an existing task, but + /// since tasks have no mutable custom properties, there is little reason to do + /// so. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task UpdateAsync(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, ProjectTask parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(groupName, serviceName, projectName, taskName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. This method cancels a task if it's currently + /// queued or running. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + public static ProjectTask Cancel(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName) + { + return ((ITasksOperations)operations).CancelAsync(groupName, serviceName, projectName, taskName).GetAwaiter().GetResult(); + } + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. This method cancels a task if it's currently + /// queued or running. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task CancelAsync(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.CancelWithHttpMessagesAsync(groupName, serviceName, projectName, taskName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. This method executes a command on a running + /// task. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + public static CommandProperties Command(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, CommandProperties parameters) + { + return ((ITasksOperations)operations).CommandAsync(groupName, serviceName, projectName, taskName, parameters).GetAwaiter().GetResult(); + } + + /// + /// The tasks resource is a nested, proxy-only resource representing work + /// performed by a DMS instance. This method executes a command on a running + /// task. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group + /// + /// + /// Name of the service + /// + /// + /// Name of the project + /// + /// + /// Name of the Task + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task CommandAsync(this ITasksOperations operations, string groupName, string serviceName, string projectName, string taskName, CommandProperties parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.CommandWithHttpMessagesAsync(groupName, serviceName, projectName, taskName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of 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. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListNext(this ITasksOperations operations, string nextPageLink) + { + return ((ITasksOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// The services resource is the top-level resource that represents the + /// Database Migration Service. This method returns a list of 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. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListNextAsync(this ITasksOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } +} diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/UsagesOperations.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/UsagesOperations.cs new file mode 100644 index 000000000000..54ed6fe493bb --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/UsagesOperations.cs @@ -0,0 +1,419 @@ +// 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.DataMigration +{ + using System.Linq; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// UsagesOperations operations. + /// + internal partial class UsagesOperations : Microsoft.Rest.IServiceOperations, IUsagesOperations + { + /// + /// Initializes a new instance of the UsagesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal UsagesOperations (DataMigrationServiceClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + this.Client = client; + } + + /// + /// Gets a reference to the DataMigrationServiceClient + /// + public DataMigrationServiceClient Client { get; private set; } + + /// + /// This method returns region-specific quotas and resource usage information + /// for the Database Migration Service. + /// + /// + /// The Azure region of the operation + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string location, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (location == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "location"); + } + + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("location", location); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/usages").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// This method returns region-specific quotas and resource usage information + /// for the Database Migration Service. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + } +} \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/Generated/UsagesOperationsExtensions.cs b/src/DataMigration/DataMigration.Management.Sdk/Generated/UsagesOperationsExtensions.cs new file mode 100644 index 000000000000..aa140ed577bd --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Generated/UsagesOperationsExtensions.cs @@ -0,0 +1,86 @@ +// 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.DataMigration +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// Extension methods for UsagesOperations + /// + public static partial class UsagesOperationsExtensions + { + /// + /// This method returns region-specific quotas and resource usage information + /// for the Database Migration Service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The Azure region of the operation + /// + public static Microsoft.Rest.Azure.IPage List(this IUsagesOperations operations, string location) + { + return ((IUsagesOperations)operations).ListAsync(location).GetAwaiter().GetResult(); + } + + /// + /// This method returns region-specific quotas and resource usage information + /// for the Database Migration Service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The Azure region of the operation + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListAsync(this IUsagesOperations operations, string location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// This method returns region-specific quotas and resource usage information + /// for the Database Migration Service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListNext(this IUsagesOperations operations, string nextPageLink) + { + return ((IUsagesOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// This method returns region-specific quotas and resource usage information + /// for the Database Migration Service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListNextAsync(this IUsagesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } +} diff --git a/src/DataMigration/DataMigration.Management.Sdk/Properties/AssemblyInfo.cs b/src/DataMigration/DataMigration.Management.Sdk/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..b872c7293f5e --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/Properties/AssemblyInfo.cs @@ -0,0 +1,27 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Microsoft Azure Powershell - Data Migration Management SDK")] +[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Data Migration Resources.")] +[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] +[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] +[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] + +[assembly: AssemblyVersion("0.7.0.0")] +[assembly: AssemblyFileVersion("0.7.0.0")] \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Management.Sdk/README.md b/src/DataMigration/DataMigration.Management.Sdk/README.md new file mode 100644 index 000000000000..b529a303e567 --- /dev/null +++ b/src/DataMigration/DataMigration.Management.Sdk/README.md @@ -0,0 +1,159 @@ +# Overall +This directory contains management plane service clients of Az.Storage module. + +## Run Generation +In this directory, run AutoRest: +``` +autorest --reset +autorest --use:@autorest/powershell@4.x +``` + +### AutoRest Configuration +> see https://aka.ms/autorest +``` yaml +isSdkGenerator: true +powershell: true +title: DataMigrationServiceClient +description: Data Migration Client +openapi-type: arm +reflect-api-versions: true +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +clear-output-folder: true +useDateTimeOffset: true +``` + + + +### +``` yaml +commit: 0b39f4aa008a0cbd9005c363b84e0e3898898186 +input-file: + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/datamigration.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Commands.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Common.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToSourceMySqlTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToSourceSqlServerTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetAzureDbForMySqlTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlDbTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlMITask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlSqlDbSyncTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/GetUserTablesSqlSyncTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/GetUserTablesSqlTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSchemaSqlServerSqlDbTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateMySqlAzureDbForMySqlSyncTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigratePostgreSqlAzureDbForPostgreSqlSyncTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSqlServerSqlDbSyncTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSqlServerSqlDbTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSqlServerSqlMITask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrationValidation.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MongoDbTasks.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/GetTdeCertificatesSqlTask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Projects.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Services.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Tasks.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/TasksCommon.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ValidateMigrationInputSqlServerSqlMITask.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ValidateSyncMigrationInputSqlServerTask.json + +output-folder: Generated + +namespace: Microsoft.Azure.Management.DataMigration + +directive: +# - from: swagger-document +# where: $.info.x-ms-code-generation-settings + + - from: ConnectToSourceSqlServerTask.json + where: $.definitions.ConnectToSourceSqlServerTaskOutput + transform: $['required'] = ['resultType'] + - from: MigrateSchemaSqlServerSqlDbTask.json + where: $.definitions.MigrateSchemaSqlServerSqlDbTaskOutput + transform: $['required'] = ['resultType'] + - from: MigrateMySqlAzureDbForMySqlSyncTask.json + where: $.definitions.MigrateMySqlAzureDbForMySqlSyncTaskOutput + transform: $['required'] = ['resultType'] + - from: MigratePostgreSqlAzureDbForPostgreSqlSyncTask.json + where: $.definitions.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput + transform: $['required'] = ['resultType'] + - from: MigrateSqlServerSqlDbSyncTask.json + where: $.definitions.MigrateSqlServerSqlDbSyncTaskOutput + transform: $['required'] = ['resultType'] + - from: MigrateSqlServerSqlDbSyncTask.json + where: $.definitions.MigrateSqlServerSqlDbTaskOutput + transform: $['required'] = ['resultType'] + - from: MigrateSqlServerSqlDbTask.json + where: $.definitions.MigrateSqlServerSqlDbTaskOutput + transform: $['required'] = ['resultType'] + - from: MigrateSqlServerSqlMITask.json + where: $.definitions.MigrateSqlServerSqlMITaskOutput + transform: $['required'] = ['resultType'] + - from: MongoDbTasks.json + where: $.definitions.MongoDbProgress + transform: $['discriminator'] = "resultType" + - from: MigrateSqlServerSqlMiSyncTask.json + where: $.definitions.MigrateSqlServerSqlMISyncTaskOutput + transform: $['required'] = ['resultType'] + - from: ConnectToSourceSqlServerTask.json + where: $.definitions.ConnectToSourceSqlServerTaskOutputTaskLevel.properties.databases + transform: $['type'] = "object" + - from: ConnectToSourceSqlServerTask.json + where: $.definitions.ConnectToSourceSqlServerTaskOutputTaskLevel.properties.logins + transform: $['type'] = "object" + - from: ConnectToSourceSqlServerTask.json + where: $.definitions.ConnectToSourceSqlServerTaskOutputTaskLevel.properties.agentJobs + transform: $['type'] = "object" + - from: ConnectToSourceSqlServerTask.json + where: $.definitions.ConnectToSourceSqlServerTaskOutputTaskLevel.properties.databaseTdeCertificateMapping + transform: $['type'] = "object" + - from: ConnectToTargetSqlDbTask.json + where: $.definitions.ConnectToTargetSqlDbTaskOutput.properties.databases + transform: $['type'] = "object" + - from: GetTdeCertificatesSqlTask.json + where: $.definitions.GetTdeCertificatesSqlTaskOutput.properties.base64EncodedCertificates + transform: $['type'] = "object" + - from: GetUserTablesSqlSyncTask.json + where: $.definitions.GetUserTablesSqlSyncTaskOutput.properties.databasesToSourceTables + transform: $['type'] = "object" + - from: GetUserTablesSqlSyncTask.json + where: $.definitions.GetUserTablesSqlSyncTaskOutput.properties.databasesToTargetTables + transform: $['type'] = "object" + - from: GetUserTablesSqlSyncTask.json + where: $.definitions.GetUserTablesSqlSyncTaskOutput.properties.tableValidationErrors + transform: $['type'] = "object" + - from: GetUserTablesSqlTask.json + where: $.definitions.GetUserTablesSqlTaskOutput.properties.databasesToTables + transform: $['type'] = "object" + - from: MigrateSqlServerSqlDbTask.json + where: $.definitions.MigrateSqlServerSqlDbTaskOutputDatabaseLevel.properties.objectSummary + transform: $['type'] = "object" + - from: MigrateSqlServerSqlDbTask.json + where: $.definitions.MigrateSqlServerSqlDbTaskOutputMigrationLevel.properties.databases + transform: $['type'] = "object" + - from: MigrateSqlServerSqlDbTask.json + where: $.definitions.MigrateSqlServerSqlDbTaskOutputMigrationLevel.properties.databaseSummary + transform: $['type'] = "object" + - from: MigrateSqlServerSqlMITask.json + where: $.definitions.MigrateSqlServerSqlMITaskOutputMigrationLevel.properties.agentJobs + transform: $['type'] = "object" + - from: MigrateSqlServerSqlMITask.json + where: $.definitions.MigrateSqlServerSqlMITaskOutputMigrationLevel.properties.logins + transform: $['type'] = "object" + - from: MigrateSqlServerSqlMITask.json + where: $.definitions.MigrateSqlServerSqlMITaskOutputMigrationLevel.properties.serverRoleResults + transform: $['type'] = "object" + - from: MigrateSqlServerSqlMITask.json + where: $.definitions.MigrateSqlServerSqlMITaskOutputMigrationLevel.properties.databases + transform: $['type'] = "object" + - from: TasksCommon.json + where: $.definitions.NonSqlMigrationTaskOutput.properties.dataMigrationTableResults + transform: $['type'] = "object" + - where: + model-name: ConnectToTargetSqlDbSyncTaskInput + set: + model-name: ConnectToTargetSqlSqlDbSyncTaskInput + - where: + model-name: ConnectToTargetSqlDbSyncTaskProperties + set: + model-name: ConnectToTargetSqlSqlDbSyncTaskProperties +``` \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Test/DataMigration.Test.csproj b/src/DataMigration/DataMigration.Test/DataMigration.Test.csproj index 95d6e0ab46f7..8f1fa37a3158 100644 --- a/src/DataMigration/DataMigration.Test/DataMigration.Test.csproj +++ b/src/DataMigration/DataMigration.Test/DataMigration.Test.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceMongoDb.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceMongoDb.json index 87cab6209b85..358eb8387eb2 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceMongoDb.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceMongoDb.json @@ -2116,8 +2116,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4400/providers/Microsoft.DataMigration/services/DmService-PsTestRun84/projects/DmProject-PsTestRun3006/tasks/DmTask-PsTestRun935?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDQwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjg0L3Byb2plY3RzL0RtUHJvamVjdC1Qc1Rlc3RSdW4zMDA2L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW45MzU/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4400/providers/Microsoft.DataMigration/services/DmService-PsTestRun84/projects/DmProject-PsTestRun3006/tasks/DmTask-PsTestRun935?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDQwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjg0L3Byb2plY3RzL0RtUHJvamVjdC1Qc1Rlc3RSdW4zMDA2L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW45MzU/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2179,8 +2179,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4400/providers/Microsoft.DataMigration/services/DmService-PsTestRun84/projects/DmProject-PsTestRun3006/tasks/DmTask-PsTestRun935?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDQwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjg0L3Byb2plY3RzL0RtUHJvamVjdC1Qc1Rlc3RSdW4zMDA2L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW45MzU/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4400/providers/Microsoft.DataMigration/services/DmService-PsTestRun84/projects/DmProject-PsTestRun3006/tasks/DmTask-PsTestRun935?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDQwMC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjg0L3Byb2plY3RzL0RtUHJvamVjdC1Qc1Rlc3RSdW4zMDA2L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW45MzU/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceSqlServer.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceSqlServer.json index 73e5c76c8fe1..d26dcd651825 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceSqlServer.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceSqlServer.json @@ -2458,8 +2458,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun831/providers/Microsoft.DataMigration/services/DmService-PsTestRun6583/projects/DmProject-PsTestRun7832/tasks/DmTask-PsTestRun3121?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjU4My9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuNzgzMi90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzEyMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun831/providers/Microsoft.DataMigration/services/DmService-PsTestRun6583/projects/DmProject-PsTestRun7832/tasks/DmTask-PsTestRun3121?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjU4My9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuNzgzMi90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzEyMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2521,8 +2521,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun831/providers/Microsoft.DataMigration/services/DmService-PsTestRun6583/projects/DmProject-PsTestRun7832/tasks/DmTask-PsTestRun3121?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjU4My9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuNzgzMi90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzEyMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun831/providers/Microsoft.DataMigration/services/DmService-PsTestRun6583/projects/DmProject-PsTestRun7832/tasks/DmTask-PsTestRun3121?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjU4My9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuNzgzMi90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzEyMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2584,8 +2584,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun831/providers/Microsoft.DataMigration/services/DmService-PsTestRun6583/projects/DmProject-PsTestRun7832/tasks/DmTask-PsTestRun3121?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjU4My9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuNzgzMi90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzEyMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun831/providers/Microsoft.DataMigration/services/DmService-PsTestRun6583/projects/DmProject-PsTestRun7832/tasks/DmTask-PsTestRun3121?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjU4My9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuNzgzMi90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzEyMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceSqlServerSync.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceSqlServerSync.json index 94057b0c69b6..618ce9573efa 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceSqlServerSync.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToSourceSqlServerSync.json @@ -1945,8 +1945,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2966/providers/Microsoft.DataMigration/services/DmService-PsTestRun5478/projects/DmProject-PsTestRun3962/tasks/DmTask-PsTestRun548?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjk2Ni9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjU0NzgvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjM5NjIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjU0OD8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2966/providers/Microsoft.DataMigration/services/DmService-PsTestRun5478/projects/DmProject-PsTestRun3962/tasks/DmTask-PsTestRun548?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjk2Ni9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjU0NzgvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjM5NjIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjU0OD9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2008,8 +2008,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2966/providers/Microsoft.DataMigration/services/DmService-PsTestRun5478/projects/DmProject-PsTestRun3962/tasks/DmTask-PsTestRun548?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjk2Ni9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjU0NzgvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjM5NjIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjU0OD8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2966/providers/Microsoft.DataMigration/services/DmService-PsTestRun5478/projects/DmProject-PsTestRun3962/tasks/DmTask-PsTestRun548?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjk2Ni9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjU0NzgvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjM5NjIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjU0OD9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2071,8 +2071,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2966/providers/Microsoft.DataMigration/services/DmService-PsTestRun5478/projects/DmProject-PsTestRun3962/tasks/DmTask-PsTestRun548?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjk2Ni9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjU0NzgvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjM5NjIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjU0OD8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2966/providers/Microsoft.DataMigration/services/DmService-PsTestRun5478/projects/DmProject-PsTestRun3962/tasks/DmTask-PsTestRun548?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjk2Ni9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjU0NzgvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjM5NjIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjU0OD9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetCosmosDb.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetCosmosDb.json index 30facd420c11..6b15b59aee1f 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetCosmosDb.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetCosmosDb.json @@ -1774,8 +1774,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun6883/providers/Microsoft.DataMigration/services/DmService-PsTestRun5141/projects/DmProject-PsTestRun7460/tasks/DmTask-PsTestRun6549?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjg4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUxNDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjc0NjAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY1NDk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun6883/providers/Microsoft.DataMigration/services/DmService-PsTestRun5141/projects/DmProject-PsTestRun7460/tasks/DmTask-PsTestRun6549?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjg4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUxNDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjc0NjAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY1NDk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1837,8 +1837,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun6883/providers/Microsoft.DataMigration/services/DmService-PsTestRun5141/projects/DmProject-PsTestRun7460/tasks/DmTask-PsTestRun6549?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjg4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUxNDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjc0NjAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY1NDk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun6883/providers/Microsoft.DataMigration/services/DmService-PsTestRun5141/projects/DmProject-PsTestRun7460/tasks/DmTask-PsTestRun6549?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjg4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUxNDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjc0NjAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY1NDk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1900,8 +1900,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun6883/providers/Microsoft.DataMigration/services/DmService-PsTestRun5141/projects/DmProject-PsTestRun7460/tasks/DmTask-PsTestRun6549?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjg4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUxNDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjc0NjAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY1NDk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun6883/providers/Microsoft.DataMigration/services/DmService-PsTestRun5141/projects/DmProject-PsTestRun7460/tasks/DmTask-PsTestRun6549?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjg4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUxNDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjc0NjAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY1NDk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDb.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDb.json index 543c94456fd0..6741a7838ae1 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDb.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDb.json @@ -1888,8 +1888,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun145/providers/Microsoft.DataMigration/services/DmService-PsTestRun930/projects/DmProject-PsTestRun9325/tasks/DmTask-PsTestRun8499?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuOTMwL3Byb2plY3RzL0RtUHJvamVjdC1Qc1Rlc3RSdW45MzI1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW44NDk5PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun145/providers/Microsoft.DataMigration/services/DmService-PsTestRun930/projects/DmProject-PsTestRun9325/tasks/DmTask-PsTestRun8499?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuOTMwL3Byb2plY3RzL0RtUHJvamVjdC1Qc1Rlc3RSdW45MzI1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW44NDk5P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1951,8 +1951,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun145/providers/Microsoft.DataMigration/services/DmService-PsTestRun930/projects/DmProject-PsTestRun9325/tasks/DmTask-PsTestRun8499?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuOTMwL3Byb2plY3RzL0RtUHJvamVjdC1Qc1Rlc3RSdW45MzI1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW44NDk5PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun145/providers/Microsoft.DataMigration/services/DmService-PsTestRun930/projects/DmProject-PsTestRun9325/tasks/DmTask-PsTestRun8499?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuOTMwL3Byb2plY3RzL0RtUHJvamVjdC1Qc1Rlc3RSdW45MzI1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW44NDk5P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2014,8 +2014,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun145/providers/Microsoft.DataMigration/services/DmService-PsTestRun930/projects/DmProject-PsTestRun9325/tasks/DmTask-PsTestRun8499?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuOTMwL3Byb2plY3RzL0RtUHJvamVjdC1Qc1Rlc3RSdW45MzI1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW44NDk5PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun145/providers/Microsoft.DataMigration/services/DmService-PsTestRun930/projects/DmProject-PsTestRun9325/tasks/DmTask-PsTestRun8499?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTQ1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuOTMwL3Byb2plY3RzL0RtUHJvamVjdC1Qc1Rlc3RSdW45MzI1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW44NDk5P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbMi.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbMi.json index cd29ac5da656..96b0714450c1 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbMi.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbMi.json @@ -1888,8 +1888,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4895/providers/Microsoft.DataMigration/services/DmService-PsTestRun3725/projects/DmProject-PsTestRun5977/tasks/DmTask-PsTestRun6820?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDg5NS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjM3MjUvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjU5NzcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY4MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4895/providers/Microsoft.DataMigration/services/DmService-PsTestRun3725/projects/DmProject-PsTestRun5977/tasks/DmTask-PsTestRun6820?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDg5NS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjM3MjUvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjU5NzcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY4MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1951,8 +1951,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4895/providers/Microsoft.DataMigration/services/DmService-PsTestRun3725/projects/DmProject-PsTestRun5977/tasks/DmTask-PsTestRun6820?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDg5NS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjM3MjUvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjU5NzcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY4MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4895/providers/Microsoft.DataMigration/services/DmService-PsTestRun3725/projects/DmProject-PsTestRun5977/tasks/DmTask-PsTestRun6820?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDg5NS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjM3MjUvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjU5NzcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY4MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2014,8 +2014,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4895/providers/Microsoft.DataMigration/services/DmService-PsTestRun3725/projects/DmProject-PsTestRun5977/tasks/DmTask-PsTestRun6820?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDg5NS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjM3MjUvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjU5NzcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY4MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4895/providers/Microsoft.DataMigration/services/DmService-PsTestRun3725/projects/DmProject-PsTestRun5977/tasks/DmTask-PsTestRun6820?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDg5NS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjM3MjUvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjU5NzcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjY4MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbMiSync.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbMiSync.json index 53e1d77487d4..d2b35caefe86 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbMiSync.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbMiSync.json @@ -1420,7 +1420,7 @@ "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun4971/providers/Microsoft.DataMigration/services/DmService-PsTestRun9301/projects/DmProject-PsTestRun734/tasks/DmTask-PsTestRun572?api-version=2018-07-15-preview", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDk3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjkzMDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjczNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuNTcyP2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"ConnectToTarget.AzureSqlDbMI.Sync.LRS\",\r\n \"input\": {\r\n \"targetConnectionInfo\": {\r\n \"type\": \"MiSqlConnectionInfo\",\r\n \"managedInstanceResourceId\": \"/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/demomiRG/providers/Microsoft.Sql/managedInstances/demomi\",\r\n \"userName\": \"demouser\",\r\n \"password\": \"Test123Test123Test123\"\r\n },\r\n \"azureApp\": {\r\n \"applicationId\": \"3d0ecd52-ca9a-4fbe-b0ed-68f1594b3dfe\",\r\n \"appKey\": \"kv8fDwICsnTJcvsTM8fp2WMSDh6yeSaDalHfbiffBP4=\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"ConnectToTarget.AzureSqlDbMI.Sync.LRS\",\r\n \"input\": {\r\n \"targetConnectionInfo\": {\r\n \"type\": \"MiSqlConnectionInfo\",\r\n \"managedInstanceResourceId\": \"/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/demomiRG/providers/Microsoft.Sql/managedInstances/demomi\",\r\n \"userName\": \"demouser\",\r\n \"password\": \"******\"\r\n },\r\n \"azureApp\": {\r\n \"applicationId\": \"3d0ecd52-ca9a-4fbe-b0ed-68f1594b3dfe\",\r\n \"appKey\": \"kv8fDwICsnTJcvsTM8fp2WMSDh6yeSaDalHfbiffBP4=\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ "475183cb-cf21-45a9-b5a6-c8fa24f29abc" @@ -1489,8 +1489,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun4971/providers/Microsoft.DataMigration/services/DmService-PsTestRun9301/projects/DmProject-PsTestRun734/tasks/DmTask-PsTestRun572?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDk3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjkzMDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjczNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuNTcyPyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun4971/providers/Microsoft.DataMigration/services/DmService-PsTestRun9301/projects/DmProject-PsTestRun734/tasks/DmTask-PsTestRun572?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDk3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjkzMDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjczNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuNTcyP2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1552,8 +1552,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun4971/providers/Microsoft.DataMigration/services/DmService-PsTestRun9301/projects/DmProject-PsTestRun734/tasks/DmTask-PsTestRun572?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDk3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjkzMDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjczNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuNTcyPyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun4971/providers/Microsoft.DataMigration/services/DmService-PsTestRun9301/projects/DmProject-PsTestRun734/tasks/DmTask-PsTestRun572?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDk3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjkzMDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjczNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuNTcyP2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1615,8 +1615,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun4971/providers/Microsoft.DataMigration/services/DmService-PsTestRun9301/projects/DmProject-PsTestRun734/tasks/DmTask-PsTestRun572?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDk3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjkzMDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjczNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuNTcyPyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun4971/providers/Microsoft.DataMigration/services/DmService-PsTestRun9301/projects/DmProject-PsTestRun734/tasks/DmTask-PsTestRun572?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDk3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjkzMDEvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjczNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuNTcyP2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbSync.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbSync.json index a20afe0383be..8c93711c0d7a 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbSync.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestConnectToTargetSqlDbSync.json @@ -1774,8 +1774,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun1284/providers/Microsoft.DataMigration/services/DmService-PsTestRun7966/projects/DmProject-PsTestRun99/tasks/DmTask-PsTestRun579?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTI4NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NjYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk5L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41Nzk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun1284/providers/Microsoft.DataMigration/services/DmService-PsTestRun7966/projects/DmProject-PsTestRun99/tasks/DmTask-PsTestRun579?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTI4NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NjYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk5L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41Nzk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1837,8 +1837,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun1284/providers/Microsoft.DataMigration/services/DmService-PsTestRun7966/projects/DmProject-PsTestRun99/tasks/DmTask-PsTestRun579?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTI4NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NjYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk5L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41Nzk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun1284/providers/Microsoft.DataMigration/services/DmService-PsTestRun7966/projects/DmProject-PsTestRun99/tasks/DmTask-PsTestRun579?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTI4NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NjYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk5L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41Nzk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1900,8 +1900,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun1284/providers/Microsoft.DataMigration/services/DmService-PsTestRun7966/projects/DmProject-PsTestRun99/tasks/DmTask-PsTestRun579?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTI4NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NjYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk5L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41Nzk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun1284/providers/Microsoft.DataMigration/services/DmService-PsTestRun7966/projects/DmProject-PsTestRun99/tasks/DmTask-PsTestRun579?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTI4NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NjYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk5L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41Nzk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1963,8 +1963,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun1284/providers/Microsoft.DataMigration/services/DmService-PsTestRun7966/projects/DmProject-PsTestRun99/tasks/DmTask-PsTestRun579?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTI4NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NjYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk5L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41Nzk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun1284/providers/Microsoft.DataMigration/services/DmService-PsTestRun7966/projects/DmProject-PsTestRun99/tasks/DmTask-PsTestRun579?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMTI4NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NjYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk5L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41Nzk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestGetUserTableSyncTask.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestGetUserTableSyncTask.json index 53aa4c5e347c..f9a4bf16b5d2 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestGetUserTableSyncTask.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestGetUserTableSyncTask.json @@ -1888,8 +1888,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4009/providers/Microsoft.DataMigration/services/DmService-PsTestRun7430/projects/DmProject-PsTestRun1782/tasks/DmTask-PsTestRun3576?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDAwOS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc0MzAvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE3ODIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1NzY/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4009/providers/Microsoft.DataMigration/services/DmService-PsTestRun7430/projects/DmProject-PsTestRun1782/tasks/DmTask-PsTestRun3576?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDAwOS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc0MzAvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE3ODIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1NzY/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1951,8 +1951,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4009/providers/Microsoft.DataMigration/services/DmService-PsTestRun7430/projects/DmProject-PsTestRun1782/tasks/DmTask-PsTestRun3576?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDAwOS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc0MzAvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE3ODIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1NzY/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4009/providers/Microsoft.DataMigration/services/DmService-PsTestRun7430/projects/DmProject-PsTestRun1782/tasks/DmTask-PsTestRun3576?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDAwOS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc0MzAvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE3ODIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1NzY/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2014,8 +2014,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4009/providers/Microsoft.DataMigration/services/DmService-PsTestRun7430/projects/DmProject-PsTestRun1782/tasks/DmTask-PsTestRun3576?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDAwOS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc0MzAvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE3ODIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1NzY/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun4009/providers/Microsoft.DataMigration/services/DmService-PsTestRun7430/projects/DmProject-PsTestRun1782/tasks/DmTask-PsTestRun3576?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNDAwOS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc0MzAvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE3ODIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1NzY/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestGetUserTableTask.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestGetUserTableTask.json index 93a803149daa..fb0c001abaf6 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestGetUserTableTask.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestGetUserTableTask.json @@ -2173,8 +2173,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun621/providers/Microsoft.DataMigration/services/DmService-PsTestRun7084/projects/DmProject-PsTestRun9789/tasks/DmTask-PsTestRun4358?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNzA4NC9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTc4OS90YXNrcy9EbVRhc2stUHNUZXN0UnVuNDM1OD8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun621/providers/Microsoft.DataMigration/services/DmService-PsTestRun7084/projects/DmProject-PsTestRun9789/tasks/DmTask-PsTestRun4358?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNzA4NC9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTc4OS90YXNrcy9EbVRhc2stUHNUZXN0UnVuNDM1OD9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2236,8 +2236,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun621/providers/Microsoft.DataMigration/services/DmService-PsTestRun7084/projects/DmProject-PsTestRun9789/tasks/DmTask-PsTestRun4358?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNzA4NC9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTc4OS90YXNrcy9EbVRhc2stUHNUZXN0UnVuNDM1OD8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun621/providers/Microsoft.DataMigration/services/DmService-PsTestRun7084/projects/DmProject-PsTestRun9789/tasks/DmTask-PsTestRun4358?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNzA4NC9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTc4OS90YXNrcy9EbVRhc2stUHNUZXN0UnVuNDM1OD9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2299,8 +2299,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun621/providers/Microsoft.DataMigration/services/DmService-PsTestRun7084/projects/DmProject-PsTestRun9789/tasks/DmTask-PsTestRun4358?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNzA4NC9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTc4OS90YXNrcy9EbVRhc2stUHNUZXN0UnVuNDM1OD8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun621/providers/Microsoft.DataMigration/services/DmService-PsTestRun7084/projects/DmProject-PsTestRun9789/tasks/DmTask-PsTestRun4358?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNzA4NC9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTc4OS90YXNrcy9EbVRhc2stUHNUZXN0UnVuNDM1OD9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateMongoDb.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateMongoDb.json index a8713ff44204..cd3c42bc96f5 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateMongoDb.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateMongoDb.json @@ -1717,8 +1717,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun4024?$expand=output(%24filter%3DResultType%20eq%20'Migration'%20or%20ResultType%20eq%20'Database')&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuNDAyND8kZXhwYW5kPW91dHB1dCUyOCUyNGZpbHRlciUzRFJlc3VsdFR5cGUlMjBlcSUyMCUyN01pZ3JhdGlvbiUyNyUyMG9yJTIwUmVzdWx0VHlwZSUyMGVxJTIwJTI3RGF0YWJhc2UlMjclMjkmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun4024?api-version=2018-07-15-preview&$expand=output%28%24filter%3DResultType%20eq%20%27Migration%27%20or%20ResultType%20eq%20%27Database%27%29", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuNDAyND9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQlMjglMjRmaWx0ZXIlM0RSZXN1bHRUeXBlJTIwZXElMjAlMjdNaWdyYXRpb24lMjclMjBvciUyMFJlc3VsdFR5cGUlMjBlcSUyMCUyN0RhdGFiYXNlJTI3JTI5", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1780,8 +1780,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun4024?$expand=output(%24filter%3DResultType%20eq%20'Migration'%20or%20ResultType%20eq%20'Database')&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuNDAyND8kZXhwYW5kPW91dHB1dCUyOCUyNGZpbHRlciUzRFJlc3VsdFR5cGUlMjBlcSUyMCUyN01pZ3JhdGlvbiUyNyUyMG9yJTIwUmVzdWx0VHlwZSUyMGVxJTIwJTI3RGF0YWJhc2UlMjclMjkmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun4024?api-version=2018-07-15-preview&$expand=output%28%24filter%3DResultType%20eq%20%27Migration%27%20or%20ResultType%20eq%20%27Database%27%29", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuNDAyND9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQlMjglMjRmaWx0ZXIlM0RSZXN1bHRUeXBlJTIwZXElMjAlMjdNaWdyYXRpb24lMjclMjBvciUyMFJlc3VsdFR5cGUlMjBlcSUyMCUyN0RhdGFiYXNlJTI3JTI5", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1915,8 +1915,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1978,8 +1978,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2041,8 +2041,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2104,8 +2104,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2167,8 +2167,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2230,8 +2230,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2293,8 +2293,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2356,8 +2356,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2419,8 +2419,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2482,8 +2482,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2545,8 +2545,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8759/providers/Microsoft.DataMigration/services/DmService-PsTestRun5223/projects/DmProject-PsTestRun513/tasks/DmTask-PsTestRun3631?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODc1OS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjUyMjMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjUxMy90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzYzMT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDBSync.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDBSync.json index 2d134815f0fc..9324ea5d2255 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDBSync.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDBSync.json @@ -1705,7 +1705,7 @@ "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"Migrate.SqlServer.AzureSqlDb.Sync\",\r\n \"input\": {\r\n \"selectedDatabases\": [\r\n {\r\n \"name\": \"MigrateOneTime\",\r\n \"targetDatabaseName\": \"JasmineTest\",\r\n \"schemaName\": \"dbo\",\r\n \"tableMap\": {\r\n \"dbo.TestTable2\": \"dbo.TestTable2\",\r\n \"dbo.TestTable1\": \"dbo.TestTable1\"\r\n },\r\n \"migrationSetting\": {},\r\n \"sourceSetting\": {},\r\n \"targetSetting\": {}\r\n }\r\n ],\r\n \"validationOptions\": {\r\n \"enableSchemaValidation\": false,\r\n \"enableDataIntegrityValidation\": false,\r\n \"enableQueryAnalysisValidation\": false\r\n },\r\n \"sourceConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"AALAB03-2K8.redmond.corp.microsoft.com\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"testuser\",\r\n \"password\": \"Dr22VHg@_,P3\"\r\n },\r\n \"targetConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"dmstest.database.windows.net\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"testuser\",\r\n \"password\": \"Dr22VHg@_,P3\"\r\n }\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"Migrate.SqlServer.AzureSqlDb.Sync\",\r\n \"input\": {\r\n \"selectedDatabases\": [\r\n {\r\n \"name\": \"MigrateOneTime\",\r\n \"targetDatabaseName\": \"JasmineTest\",\r\n \"schemaName\": \"dbo\",\r\n \"tableMap\": {\r\n \"dbo.TestTable2\": \"dbo.TestTable2\",\r\n \"dbo.TestTable1\": \"dbo.TestTable1\"\r\n },\r\n \"migrationSetting\": {},\r\n \"sourceSetting\": {},\r\n \"targetSetting\": {}\r\n }\r\n ],\r\n \"validationOptions\": {\r\n \"enableSchemaValidation\": false,\r\n \"enableDataIntegrityValidation\": false,\r\n \"enableQueryAnalysisValidation\": false\r\n },\r\n \"sourceConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"AALAB03-2K8.redmond.corp.microsoft.com\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"testuser\",\r\n \"password\": \"***\"\r\n },\r\n \"targetConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"dmstest.database.windows.net\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"testuser\",\r\n \"password\": \"***\"\r\n }\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ "f55cb55e-df33-4584-b24a-6e902511c795" @@ -1774,8 +1774,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1837,8 +1837,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1900,8 +1900,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1963,8 +1963,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2026,8 +2026,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2089,8 +2089,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2152,8 +2152,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2215,8 +2215,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2278,8 +2278,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2341,8 +2341,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2404,8 +2404,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2467,8 +2467,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2530,8 +2530,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2593,8 +2593,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2656,8 +2656,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2719,8 +2719,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2782,8 +2782,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2845,8 +2845,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2908,8 +2908,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2971,8 +2971,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3034,8 +3034,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3097,8 +3097,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3160,8 +3160,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3223,8 +3223,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3286,8 +3286,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3349,8 +3349,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3412,8 +3412,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3475,8 +3475,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3538,8 +3538,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3601,8 +3601,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3664,8 +3664,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3727,8 +3727,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3790,8 +3790,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun2252/providers/Microsoft.DataMigration/services/DmService-PsTestRun9462/projects/DmProject-PsTestRun9117/tasks/DmTask-PsTestRun3520?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMjI1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjk0NjIvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjkxMTcvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjM1MjA/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDb.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDb.json index ebd15026e1fc..91a7c953b558 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDb.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDb.json @@ -2173,8 +2173,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2236,8 +2236,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2299,8 +2299,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2362,8 +2362,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2425,8 +2425,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2488,8 +2488,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2551,8 +2551,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2614,8 +2614,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2677,8 +2677,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2740,8 +2740,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2803,8 +2803,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2866,8 +2866,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2929,8 +2929,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2992,8 +2992,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3055,8 +3055,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3118,8 +3118,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3181,8 +3181,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3245,8 +3245,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3PyRleHBhbmQ9b3V0cHV0JmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun393/providers/Microsoft.DataMigration/services/DmService-PsTestRun6823/projects/DmProject-PsTestRun915/tasks/DmTask-PsTestRun5497?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzkzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjgyMy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTE1L3Rhc2tzL0RtVGFzay1Qc1Rlc3RSdW41NDk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldyYkZXhwYW5kPW91dHB1dA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDbMi.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDbMi.json index 0c533f871f79..1ed525a2dfed 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDbMi.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDbMi.json @@ -1763,7 +1763,7 @@ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", "RequestMethod": "PUT", //[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="...")] - "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"Migrate.SqlServer.AzureSqlDbMI\",\r\n \"input\": {\r\n \"selectedDatabases\": [\r\n {\r\n \"name\": \"TestMI\",\r\n \"restoreDatabaseName\": \"TestMI6\",\r\n \"backupFileShare\": {\r\n \"userName\": \"REDMOND\\\\user\",\r\n \"password\": \"pass2@2@\",\r\n \"path\": \"\\\\\\\\sourcedb\\\\MI_drop\"\r\n }\r\n }\r\n ],\r\n \"backupFileShare\": {\r\n \"userName\": \"REDMOND\\\\user\",\r\n \"password\": \"pass2@2@\",\r\n \"path\": \"\\\\\\\\sourcedb\\\\MI_drop\"\r\n },\r\n \"backupBlobShare\": {\r\n \"sasUri\": \"https://userblob.blob.core.windows.net/blobs?st=2018-09-21T00%3A25%3A13Z&se=2018-10-22T00%3A25%3A00Z&sp=rwdl&sv=2018-03-28&sr=c&sig=NuTfjekajfejafjfjhaDjAtnujctaZYGI4KdmMlUrL0%3D\"\r\n },\r\n \"backupMode\": \"CreateBackup\",\r\n \"sourceConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"sourcedb\\\\server,12345\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"testuser\",\r\n \"password\": \"Password\"\r\n },\r\n \"targetConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"demomi.server.database.windows.net\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"demouser\",\r\n \"password\": \"Password\"\r\n }\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"Migrate.SqlServer.AzureSqlDbMI\",\r\n \"input\": {\r\n \"selectedDatabases\": [\r\n {\r\n \"name\": \"TestMI\",\r\n \"restoreDatabaseName\": \"TestMI6\",\r\n \"backupFileShare\": {\r\n \"userName\": \"REDMOND\\\\user\",\r\n \"password\": \"***\",\r\n \"path\": \"\\\\\\\\sourcedb\\\\MI_drop\"\r\n }\r\n }\r\n ],\r\n \"backupFileShare\": {\r\n \"userName\": \"REDMOND\\\\user\",\r\n \"password\": \"***\",\r\n \"path\": \"\\\\\\\\sourcedb\\\\MI_drop\"\r\n },\r\n \"backupBlobShare\": {\r\n \"sasUri\": \"https://userblob.blob.core.windows.net/blobs?st=2018-09-21T00%3A25%3A13Z&se=2018-10-22T00%3A25%3A00Z&sp=rwdl&sv=2018-03-28&sr=c&sig=NuTfjekajfejafjfjhaDjAtnujctaZYGI4KdmMlUrL0%3D\"\r\n },\r\n \"backupMode\": \"CreateBackup\",\r\n \"sourceConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"sourcedb\\\\server,12345\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"testuser\",\r\n \"password\": \"Password\"\r\n },\r\n \"targetConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"demomi.server.database.windows.net\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"demouser\",\r\n \"password\": \"Password\"\r\n }\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1832,8 +1832,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1895,8 +1895,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1958,8 +1958,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2021,8 +2021,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2084,8 +2084,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2147,8 +2147,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2210,8 +2210,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2273,8 +2273,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2336,8 +2336,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2399,8 +2399,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2462,8 +2462,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2525,8 +2525,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2588,8 +2588,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2651,8 +2651,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2714,8 +2714,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2777,8 +2777,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2840,8 +2840,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2903,8 +2903,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2966,8 +2966,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3029,8 +3029,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3092,8 +3092,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3156,8 +3156,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun8381/providers/Microsoft.DataMigration/services/DmService-PsTestRun1506/projects/DmProject-PsTestRun1970/tasks/DmTask-PsTestRun7412?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuODM4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjE1MDYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjE5NzAvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjc0MTI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDbMiSync.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDbMiSync.json index 9f5f7f052d9a..e00541768c5e 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDbMiSync.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestMigrateSqlSqlDbMiSync.json @@ -1420,7 +1420,7 @@ "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"Migrate.SqlServer.AzureSqlDbMI.Sync.LRS\",\r\n \"input\": {\r\n \"selectedDatabases\": [\r\n {\r\n \"name\": \"AdventureWorks\",\r\n \"restoreDatabaseName\": \"AdventureWorks-PsTestRun3343\",\r\n \"backupFileShare\": {\r\n \"userName\": \".\\\\TestUser1\",\r\n \"password\": \"Jan@2019\",\r\n \"path\": \"\\\\\\\\aalab03-2k8.redmond.corp.microsoft.com\\\\SharedBackup1\"\r\n }\r\n }\r\n ],\r\n \"backupFileShare\": {\r\n \"userName\": \".\\\\TestUser1\",\r\n \"password\": \"Jan@2019\",\r\n \"path\": \"\\\\\\\\aalab03-2k8.redmond.corp.microsoft.com\\\\SharedBackup1\"\r\n },\r\n \"storageResourceId\": \"/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/MIPSTEST/providers/Microsoft.Storage/storageAccounts/mipstest\",\r\n \"sourceConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"aalab03-2k8.redmond.corp.microsoft.com\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"TestUser1\",\r\n \"password\": \"TestUser1\"\r\n },\r\n \"targetConnectionInfo\": {\r\n \"type\": \"MiSqlConnectionInfo\",\r\n \"managedInstanceResourceId\": \"/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/demomiRG/providers/Microsoft.Sql/managedInstances/demomi\",\r\n \"userName\": \"demouser\",\r\n \"password\": \"Test123Test123Test123\"\r\n },\r\n \"azureApp\": {\r\n \"applicationId\": \"3d0ecd52-ca9a-4fbe-b0ed-68f1594b3dfe\",\r\n \"appKey\": \"kv8fDwICsnTJcvsTM8fp2WMSDh6yeSaDalHfbiffBP4=\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"Migrate.SqlServer.AzureSqlDbMI.Sync.LRS\",\r\n \"input\": {\r\n \"selectedDatabases\": [\r\n {\r\n \"name\": \"AdventureWorks\",\r\n \"restoreDatabaseName\": \"AdventureWorks-PsTestRun3343\",\r\n \"backupFileShare\": {\r\n \"userName\": \".\\\\TestUser1\",\r\n \"password\": \"***\",\r\n \"path\": \"\\\\\\\\aalab03-2k8.redmond.corp.microsoft.com\\\\SharedBackup1\"\r\n }\r\n }\r\n ],\r\n \"backupFileShare\": {\r\n \"userName\": \".\\\\TestUser1\",\r\n \"password\": \"***\",\r\n \"path\": \"\\\\\\\\aalab03-2k8.redmond.corp.microsoft.com\\\\SharedBackup1\"\r\n },\r\n \"storageResourceId\": \"/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/MIPSTEST/providers/Microsoft.Storage/storageAccounts/mipstest\",\r\n \"sourceConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"aalab03-2k8.redmond.corp.microsoft.com\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"TestUser1\",\r\n \"password\": \"****\"\r\n },\r\n \"targetConnectionInfo\": {\r\n \"type\": \"MiSqlConnectionInfo\",\r\n \"managedInstanceResourceId\": \"/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/demomiRG/providers/Microsoft.Sql/managedInstances/demomi\",\r\n \"userName\": \"demouser\",\r\n \"password\": \"******\"\r\n },\r\n \"azureApp\": {\r\n \"applicationId\": \"3d0ecd52-ca9a-4fbe-b0ed-68f1594b3dfe\",\r\n \"appKey\": \"kv8fDwICsnTJcvsTM8fp2WMSDh6yeSaDalHfbiffBP4=\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ "82ce254d-51a6-4c73-811c-3fa9d1926052" @@ -1489,8 +1489,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1552,8 +1552,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1615,8 +1615,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1678,8 +1678,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1741,8 +1741,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1804,8 +1804,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1867,8 +1867,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1930,8 +1930,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1993,8 +1993,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2056,8 +2056,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2119,8 +2119,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2182,8 +2182,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2245,8 +2245,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2308,8 +2308,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2371,8 +2371,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2434,8 +2434,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2497,8 +2497,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2560,8 +2560,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2623,8 +2623,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2686,8 +2686,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun5244/providers/Microsoft.DataMigration/services/DmService-PsTestRun7976/projects/DmProject-PsTestRun1042/tasks/DmTask-PsTestRun6169?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTI0NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjc5NzYvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjEwNDIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjYxNjk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestRemoveProject.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestRemoveProject.json index cd20fa625a63..565e7bbe3c52 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestRemoveProject.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestRemoveProject.json @@ -1930,8 +1930,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun3674/providers/Microsoft.DataMigration/services/DmService-PsTestRun3970/projects/DmProject-PsTestRun8709?deleteRunningTasks=false&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzY3NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjM5NzAvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjg3MDk/ZGVsZXRlUnVubmluZ1Rhc2tzPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTgtMDctMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun3674/providers/Microsoft.DataMigration/services/DmService-PsTestRun3970/projects/DmProject-PsTestRun8709?api-version=2018-07-15-preview&deleteRunningTasks=false", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzY3NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjM5NzAvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjg3MDk/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JmRlbGV0ZVJ1bm5pbmdUYXNrcz1mYWxzZQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestRemoveService.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestRemoveService.json index 5875b23547d2..b29fb40d8ed9 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestRemoveService.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestRemoveService.json @@ -1747,8 +1747,8 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun556/providers/Microsoft.DataMigration/services/DmService-PsTestRun8745?deleteRunningTasks=false&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTU2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuODc0NT9kZWxldGVSdW5uaW5nVGFza3M9ZmFsc2UmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun556/providers/Microsoft.DataMigration/services/DmService-PsTestRun8745?api-version=2018-07-15-preview&deleteRunningTasks=false", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNTU2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuODc0NT9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmZGVsZXRlUnVubmluZ1Rhc2tzPWZhbHNl", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbMi.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbMi.json index 9ab4a863b1a0..3afeba05bed5 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbMi.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbMi.json @@ -1820,7 +1820,7 @@ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzM2OC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjQwODMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk3OTIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjg3ODI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", "RequestMethod": "PUT", //[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="...")] - "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"ValidateMigrationInput.SqlServer.AzureSqlDbMI\",\r\n \"input\": {\r\n \"sourceConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"sourcedb\\\\server,12345\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"testuser\",\r\n \"password\": \"Password\"\r\n },\r\n \"targetConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"demomi.server.database.windows.net\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"demouser\",\r\n \"password\": \"Password\"\r\n },\r\n \"selectedDatabases\": [\r\n {\r\n \"name\": \"TestMI\",\r\n \"restoreDatabaseName\": \"TestTarget\",\r\n \"backupFileShare\": {\r\n \"userName\": \"REDMOND\\\\user\",\r\n \"password\": \"pass2@2@\",\r\n \"path\": \"\\\\\\\\sourcedb\\\\MI_drop\"\r\n }\r\n }\r\n ],\r\n \"backupFileShare\": {\r\n \"userName\": \"REDMOND\\\\user\",\r\n \"password\": \"pass2@2@\",\r\n \"path\": \"\\\\\\\\sourcedb\\\\MI_drop\"\r\n },\r\n \"backupBlobShare\": {\r\n \"sasUri\": \"https://userblob.blob.core.windows.net/blobs?st=2018-09-21T00%3A25%3A13Z&se=2018-10-22T00%3A25%3A00Z&sp=rwdl&sv=2018-03-28&sr=c&sig=NuTfjekajfejafjfjhaDjAtnujctaZYGI4KdmMlUrL0%3D\"\r\n },\r\n \"backupMode\": \"CreateBackup\"\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"ValidateMigrationInput.SqlServer.AzureSqlDbMI\",\r\n \"input\": {\r\n \"sourceConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"sourcedb\\\\server,12345\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"testuser\",\r\n \"password\": \"Password\"\r\n },\r\n \"targetConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"demomi.server.database.windows.net\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"demouser\",\r\n \"password\": \"Password\"\r\n },\r\n \"selectedDatabases\": [\r\n {\r\n \"name\": \"TestMI\",\r\n \"restoreDatabaseName\": \"TestTarget\",\r\n \"backupFileShare\": {\r\n \"userName\": \"REDMOND\\\\user\",\r\n \"password\": \"testsecret3\",\r\n \"path\": \"\\\\\\\\sourcedb\\\\MI_drop\"\r\n }\r\n }\r\n ],\r\n \"backupFileShare\": {\r\n \"userName\": \"REDMOND\\\\user\",\r\n \"password\": \"*****\",\r\n \"path\": \"\\\\\\\\sourcedb\\\\MI_drop\"\r\n },\r\n \"backupBlobShare\": {\r\n \"sasUri\": \"https://userblob.blob.core.windows.net/blobs?st=2018-09-21T00%3A25%3A13Z&se=2018-10-22T00%3A25%3A00Z&sp=rwdl&sv=2018-03-28&sr=c&sig=NuTfjekajfejafjfjhaDjAtnujctaZYGI4KdmMlUrL0%3D\"\r\n },\r\n \"backupMode\": \"CreateBackup\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1889,8 +1889,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun3368/providers/Microsoft.DataMigration/services/DmService-PsTestRun4083/projects/DmProject-PsTestRun9792/tasks/DmTask-PsTestRun8782?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzM2OC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjQwODMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk3OTIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjg3ODI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun3368/providers/Microsoft.DataMigration/services/DmService-PsTestRun4083/projects/DmProject-PsTestRun9792/tasks/DmTask-PsTestRun8782?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzM2OC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjQwODMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk3OTIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjg3ODI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1952,8 +1952,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun3368/providers/Microsoft.DataMigration/services/DmService-PsTestRun4083/projects/DmProject-PsTestRun9792/tasks/DmTask-PsTestRun8782?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzM2OC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjQwODMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk3OTIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjg3ODI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun3368/providers/Microsoft.DataMigration/services/DmService-PsTestRun4083/projects/DmProject-PsTestRun9792/tasks/DmTask-PsTestRun8782?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzM2OC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjQwODMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk3OTIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjg3ODI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2015,8 +2015,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun3368/providers/Microsoft.DataMigration/services/DmService-PsTestRun4083/projects/DmProject-PsTestRun9792/tasks/DmTask-PsTestRun8782?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzM2OC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjQwODMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk3OTIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjg3ODI/JGV4cGFuZD1vdXRwdXQmYXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun3368/providers/Microsoft.DataMigration/services/DmService-PsTestRun4083/projects/DmProject-PsTestRun9792/tasks/DmTask-PsTestRun8782?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuMzM2OC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFNaWdyYXRpb24vc2VydmljZXMvRG1TZXJ2aWNlLVBzVGVzdFJ1bjQwODMvcHJvamVjdHMvRG1Qcm9qZWN0LVBzVGVzdFJ1bjk3OTIvdGFza3MvRG1UYXNrLVBzVGVzdFJ1bjg3ODI/YXBpLXZlcnNpb249MjAxOC0wNy0xNS1wcmV2aWV3JiRleHBhbmQ9b3V0cHV0", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbMiSync.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbMiSync.json index c5729988893a..340dc00b7fed 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbMiSync.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbMiSync.json @@ -1192,7 +1192,7 @@ "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun681/providers/Microsoft.DataMigration/services/DmService-PsTestRun6227/projects/DmProject-PsTestRun2667/tasks/DmTask-PsTestRun8354?api-version=2018-07-15-preview", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjIyNy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuMjY2Ny90YXNrcy9EbVRhc2stUHNUZXN0UnVuODM1ND9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS\",\r\n \"input\": {\r\n \"selectedDatabases\": [\r\n {\r\n \"name\": \"AdventureWorks\",\r\n \"restoreDatabaseName\": \"AdventureWorks-PsTestRun9585\",\r\n \"backupFileShare\": {\r\n \"userName\": \".\\\\TestUser1\",\r\n \"password\": \"Jan@2019\",\r\n \"path\": \"\\\\\\\\aalab03-2k8.redmond.corp.microsoft.com\\\\SharedBackup1\"\r\n }\r\n }\r\n ],\r\n \"backupFileShare\": {\r\n \"userName\": \".\\\\TestUser1\",\r\n \"password\": \"Jan@2019\",\r\n \"path\": \"\\\\\\\\aalab03-2k8.redmond.corp.microsoft.com\\\\SharedBackup1\"\r\n },\r\n \"storageResourceId\": \"/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/MIPSTEST/providers/Microsoft.Storage/storageAccounts/mipstest\",\r\n \"sourceConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"aalab03-2k8.redmond.corp.microsoft.com\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"TestUser1\",\r\n \"password\": \"TestUser1\"\r\n },\r\n \"targetConnectionInfo\": {\r\n \"type\": \"MiSqlConnectionInfo\",\r\n \"managedInstanceResourceId\": \"/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/demomiRG/providers/Microsoft.Sql/managedInstances/demomi\",\r\n \"userName\": \"demouser\",\r\n \"password\": \"Test123Test123Test123\"\r\n },\r\n \"azureApp\": {\r\n \"applicationId\": \"3d0ecd52-ca9a-4fbe-b0ed-68f1594b3dfe\",\r\n \"appKey\": \"kv8fDwICsnTJcvsTM8fp2WMSDh6yeSaDalHfbiffBP4=\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"taskType\": \"ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS\",\r\n \"input\": {\r\n \"selectedDatabases\": [\r\n {\r\n \"name\": \"AdventureWorks\",\r\n \"restoreDatabaseName\": \"AdventureWorks-PsTestRun9585\",\r\n \"backupFileShare\": {\r\n \"userName\": \".\\\\TestUser1\",\r\n \"password\": \"***\",\r\n \"path\": \"\\\\\\\\aalab03-2k8.redmond.corp.microsoft.com\\\\SharedBackup1\"\r\n }\r\n }\r\n ],\r\n \"backupFileShare\": {\r\n \"userName\": \".\\\\TestUser1\",\r\n \"password\": \"***\",\r\n \"path\": \"\\\\\\\\aalab03-2k8.redmond.corp.microsoft.com\\\\SharedBackup1\"\r\n },\r\n \"storageResourceId\": \"/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/MIPSTEST/providers/Microsoft.Storage/storageAccounts/mipstest\",\r\n \"sourceConnectionInfo\": {\r\n \"type\": \"SqlConnectionInfo\",\r\n \"dataSource\": \"aalab03-2k8.redmond.corp.microsoft.com\",\r\n \"authentication\": \"SqlAuthentication\",\r\n \"encryptConnection\": true,\r\n \"trustServerCertificate\": true,\r\n \"userName\": \"TestUser1\",\r\n \"password\": \"****\"\r\n },\r\n \"targetConnectionInfo\": {\r\n \"type\": \"MiSqlConnectionInfo\",\r\n \"managedInstanceResourceId\": \"/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/demomiRG/providers/Microsoft.Sql/managedInstances/demomi\",\r\n \"userName\": \"demouser\",\r\n \"password\": \"******\"\r\n },\r\n \"azureApp\": {\r\n \"applicationId\": \"3d0ecd52-ca9a-4fbe-b0ed-68f1594b3dfe\",\r\n \"appKey\": \"kv8fDwICsnTJcvsTM8fp2WMSDh6yeSaDalHfbiffBP4=\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n }\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ "4abfb0f9-982f-44f7-97f1-73b906f196ef" @@ -1261,8 +1261,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun681/providers/Microsoft.DataMigration/services/DmService-PsTestRun6227/projects/DmProject-PsTestRun2667/tasks/DmTask-PsTestRun8354?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjIyNy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuMjY2Ny90YXNrcy9EbVRhc2stUHNUZXN0UnVuODM1ND8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun681/providers/Microsoft.DataMigration/services/DmService-PsTestRun6227/projects/DmProject-PsTestRun2667/tasks/DmTask-PsTestRun8354?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjIyNy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuMjY2Ny90YXNrcy9EbVRhc2stUHNUZXN0UnVuODM1ND9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1324,8 +1324,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun681/providers/Microsoft.DataMigration/services/DmService-PsTestRun6227/projects/DmProject-PsTestRun2667/tasks/DmTask-PsTestRun8354?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjIyNy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuMjY2Ny90YXNrcy9EbVRhc2stUHNUZXN0UnVuODM1ND8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun681/providers/Microsoft.DataMigration/services/DmService-PsTestRun6227/projects/DmProject-PsTestRun2667/tasks/DmTask-PsTestRun8354?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjIyNy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuMjY2Ny90YXNrcy9EbVRhc2stUHNUZXN0UnVuODM1ND9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1387,8 +1387,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun681/providers/Microsoft.DataMigration/services/DmService-PsTestRun6227/projects/DmProject-PsTestRun2667/tasks/DmTask-PsTestRun8354?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjIyNy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuMjY2Ny90YXNrcy9EbVRhc2stUHNUZXN0UnVuODM1ND8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun681/providers/Microsoft.DataMigration/services/DmService-PsTestRun6227/projects/DmProject-PsTestRun2667/tasks/DmTask-PsTestRun8354?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjIyNy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuMjY2Ny90YXNrcy9EbVRhc2stUHNUZXN0UnVuODM1ND9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1450,8 +1450,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun681/providers/Microsoft.DataMigration/services/DmService-PsTestRun6227/projects/DmProject-PsTestRun2667/tasks/DmTask-PsTestRun8354?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjIyNy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuMjY2Ny90YXNrcy9EbVRhc2stUHNUZXN0UnVuODM1ND8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/9d32140c-78d4-49a9-a95f-65c77c16be83/resourceGroups/DmResource-PsTestRun681/providers/Microsoft.DataMigration/services/DmService-PsTestRun6227/projects/DmProject-PsTestRun2667/tasks/DmTask-PsTestRun8354?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWQzMjE0MGMtNzhkNC00OWE5LWE5NWYtNjVjNzdjMTZiZTgzL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjIyNy9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuMjY2Ny90YXNrcy9EbVRhc2stUHNUZXN0UnVuODM1ND9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbSync.json b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbSync.json index f1d095f2eb54..58d40f32986e 100644 --- a/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbSync.json +++ b/src/DataMigration/DataMigration.Test/SessionRecords/Microsoft.Azure.Commands.ScenarioTest.DmsTest.ServiceTests/TestValidateMigrationInputSqlSqlDbSync.json @@ -1831,8 +1831,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun734/providers/Microsoft.DataMigration/services/DmService-PsTestRun6739/projects/DmProject-PsTestRun9614/tasks/DmTask-PsTestRun3870?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNzM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjczOS9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTYxNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzg3MD8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun734/providers/Microsoft.DataMigration/services/DmService-PsTestRun6739/projects/DmProject-PsTestRun9614/tasks/DmTask-PsTestRun3870?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNzM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjczOS9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTYxNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzg3MD9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1894,8 +1894,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun734/providers/Microsoft.DataMigration/services/DmService-PsTestRun6739/projects/DmProject-PsTestRun9614/tasks/DmTask-PsTestRun3870?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNzM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjczOS9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTYxNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzg3MD8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun734/providers/Microsoft.DataMigration/services/DmService-PsTestRun6739/projects/DmProject-PsTestRun9614/tasks/DmTask-PsTestRun3870?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNzM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjczOS9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTYxNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzg3MD9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1957,8 +1957,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun734/providers/Microsoft.DataMigration/services/DmService-PsTestRun6739/projects/DmProject-PsTestRun9614/tasks/DmTask-PsTestRun3870?$expand=output&api-version=2018-07-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNzM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjczOS9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTYxNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzg3MD8kZXhwYW5kPW91dHB1dCZhcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmResource-PsTestRun734/providers/Microsoft.DataMigration/services/DmService-PsTestRun6739/projects/DmProject-PsTestRun9614/tasks/DmTask-PsTestRun3870?api-version=2018-07-15-preview&$expand=output", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmMwNDI0NmYtMDRjNS00MzdlLWFjNWUtMjA2YTE5ZTcxOTNmL3Jlc291cmNlR3JvdXBzL0RtUmVzb3VyY2UtUHNUZXN0UnVuNzM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YU1pZ3JhdGlvbi9zZXJ2aWNlcy9EbVNlcnZpY2UtUHNUZXN0UnVuNjczOS9wcm9qZWN0cy9EbVByb2plY3QtUHNUZXN0UnVuOTYxNC90YXNrcy9EbVRhc2stUHNUZXN0UnVuMzg3MD9hcGktdmVyc2lvbj0yMDE4LTA3LTE1LXByZXZpZXcmJGV4cGFuZD1vdXRwdXQ=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { diff --git a/src/DataMigration/DataMigration.sln b/src/DataMigration/DataMigration.sln index 309244f750a2..e0248c1832cd 100644 --- a/src/DataMigration/DataMigration.sln +++ b/src/DataMigration/DataMigration.sln @@ -5,36 +5,35 @@ VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Accounts", "Accounts", "{7D1B97D0-9BDC-424D-830B-8F18FF10B2E5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{BCA57C10-A9C1-409A-8251-4310BE3A18FE}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{BCA57C10-A9C1-409A-8251-4310BE3A18FE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{981E0B40-ACE5-454B-98DE-D622BFF5418A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{981E0B40-ACE5-454B-98DE-D622BFF5418A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{B5ED2AD0-0412-4508-B065-05B14560EBF3}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{B5ED2AD0-0412-4508-B065-05B14560EBF3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{337BECB7-945C-48AD-BD86-51356884A928}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{337BECB7-945C-48AD-BD86-51356884A928}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{6DB43C1E-0922-445B-89C8-22B6C4F5351E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{6DB43C1E-0922-445B-89C8-22B6C4F5351E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{50E89024-F7A8-43B9-90E7-7EF9BA0E0153}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{50E89024-F7A8-43B9-90E7-7EF9BA0E0153}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataMigration", "DataMigration.Autorest\Az.DataMigration.csproj", "{89BB5BDC-A129-4378-A5B6-6A4E56A6E9DD}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.DataMigration", "DataMigration.Autorest\Az.DataMigration.csproj", "{89BB5BDC-A129-4378-A5B6-6A4E56A6E9DD}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{06363AEF-5C97-42F6-9AFD-4296138F8494}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataMigration.Test", "DataMigration.Test\DataMigration.Test.csproj", "{ED4B7E88-440B-42EA-B412-54EE0ABACC6E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataMigration.Test", "DataMigration.Test\DataMigration.Test.csproj", "{ED4B7E88-440B-42EA-B412-54EE0ABACC6E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataMigration", "DataMigration\DataMigration.csproj", "{9B4C0A25-F777-4241-9DD7-4987438B1D4E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataMigration", "DataMigration\DataMigration.csproj", "{9B4C0A25-F777-4241-9DD7-4987438B1D4E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestFx", "..\..\tools\TestFx\TestFx.csproj", "{6900ED56-82F6-41C5-A00A-1F5B5228BE67}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestFx\TestFx.csproj", "{6900ED56-82F6-41C5-A00A-1F5B5228BE67}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataMigration.Management.Sdk", "DataMigration.Management.Sdk\DataMigration.Management.Sdk.csproj", "{F2182D2E-3C99-4294-ACCA-D081A4ABA49E}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {BCA57C10-A9C1-409A-8251-4310BE3A18FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BCA57C10-A9C1-409A-8251-4310BE3A18FE}.Debug|Any CPU.Build.0 = Debug|Any CPU @@ -76,6 +75,13 @@ Global {6900ED56-82F6-41C5-A00A-1F5B5228BE67}.Debug|Any CPU.Build.0 = Debug|Any CPU {6900ED56-82F6-41C5-A00A-1F5B5228BE67}.Release|Any CPU.ActiveCfg = Release|Any CPU {6900ED56-82F6-41C5-A00A-1F5B5228BE67}.Release|Any CPU.Build.0 = Release|Any CPU + {F2182D2E-3C99-4294-ACCA-D081A4ABA49E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F2182D2E-3C99-4294-ACCA-D081A4ABA49E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F2182D2E-3C99-4294-ACCA-D081A4ABA49E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F2182D2E-3C99-4294-ACCA-D081A4ABA49E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {BCA57C10-A9C1-409A-8251-4310BE3A18FE} = {7D1B97D0-9BDC-424D-830B-8F18FF10B2E5} @@ -87,4 +93,7 @@ Global {ED4B7E88-440B-42EA-B412-54EE0ABACC6E} = {06363AEF-5C97-42F6-9AFD-4296138F8494} {6900ED56-82F6-41C5-A00A-1F5B5228BE67} = {06363AEF-5C97-42F6-9AFD-4296138F8494} EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FFFD82C2-1828-47A7-AF4A-6678F0E0C27B} + EndGlobalSection EndGlobal diff --git a/src/DataMigration/DataMigration/Az.DataMigration.psd1 b/src/DataMigration/DataMigration/Az.DataMigration.psd1 index 85f859691cb5..4c1c532d1697 100644 --- a/src/DataMigration/DataMigration/Az.DataMigration.psd1 +++ b/src/DataMigration/DataMigration/Az.DataMigration.psd1 @@ -57,7 +57,7 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.4'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'DataMigration.Autorest/bin/Az.DataMigration.private.dll', - 'Microsoft.Azure.Management.DataMigration.dll' + 'Microsoft.Azure.PowerShell.DataMigration.Management.Sdk.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() diff --git a/src/DataMigration/DataMigration/ChangeLog.md b/src/DataMigration/DataMigration/ChangeLog.md index 402d2bf93c5c..d2f5ecd9531c 100644 --- a/src/DataMigration/DataMigration/ChangeLog.md +++ b/src/DataMigration/DataMigration/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release +* Removed Microsoft.Azure.Management.DataMigration 0.7.0-preview dependencies +* Added Microsoft.Azure.PowerShell.DataMigration.Management.Sdk ## Version 0.14.7 * Fixed secrets exposure in example documentation. diff --git a/src/DataMigration/DataMigration/Cmdlets/NewAzureRmDataMigrationService.cs b/src/DataMigration/DataMigration/Cmdlets/NewAzureRmDataMigrationService.cs index 44022c5ebce1..1a93e78680c6 100644 --- a/src/DataMigration/DataMigration/Cmdlets/NewAzureRmDataMigrationService.cs +++ b/src/DataMigration/DataMigration/Cmdlets/NewAzureRmDataMigrationService.cs @@ -96,7 +96,7 @@ public DataMigrationService CreateService() DataMigrationService response = null; try { - response = DataMigrationClient.Services.CreateOrUpdate(serviceParams, ResourceGroupName, Name); + response = DataMigrationClient.Services.CreateOrUpdate(ResourceGroupName, Name, serviceParams); } catch (ApiErrorException ex) { diff --git a/src/DataMigration/DataMigration/Cmdlets/NewDataMigrationTask.cs b/src/DataMigration/DataMigration/Cmdlets/NewDataMigrationTask.cs index 6a889595a838..1e080f5e57e4 100644 --- a/src/DataMigration/DataMigration/Cmdlets/NewDataMigrationTask.cs +++ b/src/DataMigration/DataMigration/Cmdlets/NewDataMigrationTask.cs @@ -245,7 +245,7 @@ public override void ExecuteCmdlet() Properties = properties }; - response = DataMigrationClient.Tasks.CreateOrUpdate(taskInput, ResourceGroupName, ServiceName, ProjectName, Name); + response = DataMigrationClient.Tasks.CreateOrUpdate(ResourceGroupName, ServiceName, ProjectName, Name, taskInput); // wait for the task to finish: not queued or running state: while (this.Wait.IsPresent && response !=null && response.Properties != null && diff --git a/src/DataMigration/DataMigration/Cmdlets/NewProjectCmdlet.cs b/src/DataMigration/DataMigration/Cmdlets/NewProjectCmdlet.cs index b0955462a707..f99e35fe3f4a 100644 --- a/src/DataMigration/DataMigration/Cmdlets/NewProjectCmdlet.cs +++ b/src/DataMigration/DataMigration/Cmdlets/NewProjectCmdlet.cs @@ -148,7 +148,7 @@ private Project CreateProject() param.TargetPlatform = TargetType; param.Location = Location; - response = DataMigrationClient.Projects.CreateOrUpdate(param, ResourceGroupName, ServiceName, Name); + response = DataMigrationClient.Projects.CreateOrUpdate(ResourceGroupName, ServiceName, Name, param); } catch (ApiErrorException ex) { diff --git a/src/DataMigration/DataMigration/DataMigration.csproj b/src/DataMigration/DataMigration/DataMigration.csproj index dbf8e7c264bf..0a7da7893c2d 100644 --- a/src/DataMigration/DataMigration/DataMigration.csproj +++ b/src/DataMigration/DataMigration/DataMigration.csproj @@ -1,4 +1,4 @@ - + DataMigration @@ -8,9 +8,11 @@ $(LegacyAssemblyPrefix)$(PsModuleName) - + + + True