diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/CHANGELOG.md b/sdk/datamigration/Azure.ResourceManager.DataMigration/CHANGELOG.md index a1be12e12196..f926341de0bb 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/CHANGELOG.md +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/CHANGELOG.md @@ -1,14 +1,12 @@ # Release History -## 1.0.0-beta.7 (Unreleased) +## 1.0.0 (2025-09-25) -### Features Added - -### Breaking Changes +This release is the first stable release of the Database Migration management library. -### Bugs Fixed +### Features Added -### Other Changes +- Upgraded api-version tag from '2025-03-15-preview' to 'package-2025-06'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/8d4f7c60f2a1448a1442399aebf1fc17b208a253/specification/datamigration/resource-manager/readme.md. ## 1.0.0-beta.6 (2025-08-04) diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/README.md b/sdk/datamigration/Azure.ResourceManager.DataMigration/README.md index e6f9cf555f91..c4b0b2ea66c9 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/README.md +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/README.md @@ -19,7 +19,7 @@ This library follows the [new Azure SDK guidelines](https://azure.github.io/azur Install the Microsoft Azure Database Migration management library for .NET with [NuGet](https://www.nuget.org/): ```dotnetcli -dotnet add package Azure.ResourceManager.DataMigration --prerelease +dotnet add package Azure.ResourceManager.DataMigration ``` ### Prerequisites diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.net8.0.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.net8.0.cs index 79c3ce28e550..a12219ff9007 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.net8.0.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.net8.0.cs @@ -42,6 +42,8 @@ protected DatabaseMigrationSqlDBResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Retry(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RetryAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.DataMigration.DatabaseMigrationSqlDBData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.DataMigration.DatabaseMigrationSqlDBData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -84,6 +86,8 @@ protected DatabaseMigrationSqlMIResource() { } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Cutover(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task CutoverAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.DataMigration.DatabaseMigrationSqlMIData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -128,6 +132,8 @@ protected DatabaseMigrationSqlVmResource() { } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Cutover(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task CutoverAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.DataMigration.DatabaseMigrationSqlVmData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.netstandard2.0.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.netstandard2.0.cs index 79c3ce28e550..a12219ff9007 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.netstandard2.0.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.netstandard2.0.cs @@ -42,6 +42,8 @@ protected DatabaseMigrationSqlDBResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Retry(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RetryAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.DataMigration.DatabaseMigrationSqlDBData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.DataMigration.DatabaseMigrationSqlDBData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -84,6 +86,8 @@ protected DatabaseMigrationSqlMIResource() { } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Cutover(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task CutoverAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.DataMigration.DatabaseMigrationSqlMIData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -128,6 +132,8 @@ protected DatabaseMigrationSqlVmResource() { } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Cutover(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task CutoverAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataMigration.Models.MigrationOperationInput input, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteAsync(Azure.WaitUntil waitUntil, bool? force = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Guid? migrationOperationId = default(System.Guid?), string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.DataMigration.DatabaseMigrationSqlVmData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Azure.ResourceManager.DataMigration.csproj b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Azure.ResourceManager.DataMigration.csproj index 475b6e4c51a9..9e1373269a84 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Azure.ResourceManager.DataMigration.csproj +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Azure.ResourceManager.DataMigration.csproj @@ -1,6 +1,6 @@ - 1.0.0-beta.7 + 1.0.0 Azure.ResourceManager.DataMigration Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.DataMigration. azure;management;arm;resource manager;datamigration diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectCollection.cs index 1aa380e61679..df85d0639565 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string projectName, Ca /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string projectName, Cancel /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string projectName, CancellationToken cance /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectFileCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectFileCollection.cs index 9a2a677336dc..abbb33563769 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectFileCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectFileCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string fileName, C /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cance /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationTok /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string fileName, Cancellat /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string fileName, CancellationToken cancella /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectFileResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectFileResource.cs index 3c359a4b64be..4097f75e40bf 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectFileResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectFileResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual Response Update(DataMigrationPr /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -393,7 +393,7 @@ public virtual async Task> ReadAsync(Canc /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -431,7 +431,7 @@ public virtual Response Read(CancellationToken can /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -469,7 +469,7 @@ public virtual async Task> ReadWriteAsync /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectResource.cs index 2cc27adfaed1..1852efc344bc 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationProjectResource.cs @@ -109,7 +109,7 @@ public virtual DataMigrationServiceTaskCollection GetDataMigrationServiceTasks() /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetDataMig /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual DataMigrationProjectFileCollection GetDataMigrationProjectFiles() /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetDataMig /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -242,7 +242,7 @@ public virtual Response GetDataMigrationProjec /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -367,7 +367,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -412,7 +412,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteRunningTasks /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> UpdateAsync(Da /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -496,7 +496,7 @@ public virtual Response Update(DataMigrationProjec /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -558,7 +558,7 @@ public virtual async Task> AddTagAsync(st /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -620,7 +620,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -677,7 +677,7 @@ public virtual async Task> SetTagsAsync(I /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -734,7 +734,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -794,7 +794,7 @@ public virtual async Task> RemoveTagAsync /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceCollection.cs index 5be35c554723..eaa97e4583c7 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string serviceName, Ca /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string serviceName, Cancel /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string serviceName, CancellationToken cance /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceResource.cs index 2598fdaf9d30..206e8a32d1d9 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceResource.cs @@ -111,7 +111,7 @@ public virtual ServiceServiceTaskCollection GetServiceServiceTasks() /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetServiceServic /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual DataMigrationProjectCollection GetDataMigrationProjects() /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetDataMigrati /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -244,7 +244,7 @@ public virtual Response GetDataMigrationProject(st /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -324,7 +324,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -367,7 +367,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -410,7 +410,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteRunningTasks /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -456,7 +456,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -502,7 +502,7 @@ public virtual ArmOperation Update(WaitUntil waitU /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> CheckSta /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -578,7 +578,7 @@ public virtual Response CheckStatus(Cancella /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -620,7 +620,7 @@ public virtual async Task StartAsync(WaitUntil waitUntil, Cancella /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -662,7 +662,7 @@ public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancell /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -704,7 +704,7 @@ public virtual async Task StopAsync(WaitUntil waitUntil, Cancellat /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -746,7 +746,7 @@ public virtual ArmOperation Stop(WaitUntil waitUntil, CancellationToken cancella /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -776,7 +776,7 @@ public virtual AsyncPageable GetSkusAsync(Canc /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -806,7 +806,7 @@ public virtual Pageable GetSkus(CancellationTo /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -848,7 +848,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -890,7 +890,7 @@ public virtual Response CheckDataMig /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -952,7 +952,7 @@ public virtual async Task> AddTagAsync(st /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -1014,7 +1014,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -1071,7 +1071,7 @@ public virtual async Task> SetTagsAsync(I /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -1128,7 +1128,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -1188,7 +1188,7 @@ public virtual async Task> RemoveTagAsync /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceTaskCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceTaskCollection.cs index abcdf4ed1284..ce7d6b3033db 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceTaskCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceTaskCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string taskName, s /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(strin /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(string taskType /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string taskName, string ex /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string taskName, string expand = null, Canc /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceTaskResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceTaskResource.cs index 6ed9651e56c8..a07852e8c94e 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceTaskResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DataMigrationServiceTaskResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = nu /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -275,7 +275,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteRunningTasks /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual Response Update(DataMigrationPr /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -397,7 +397,7 @@ public virtual async Task> CancelAsyn /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -435,7 +435,7 @@ public virtual Response Cancel(CancellationTok /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual async Task> CommandAsync /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlDBCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlDBCollection.cs index 49c05df1cadb..41f1a536c0b4 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlDBCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlDBCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual Response Get(string sqlDBInstance /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> ExistsAsync(string sqlDBInstanceName, /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual Response Exists(string sqlDBInstanceName, string targetDBNa /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlDBResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlDBResource.cs index 1f676ca6ce84..fc5a0e7d6cad 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlDBResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlDBResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync(Gui /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(Guid? migrationOpera /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -273,7 +273,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual ArmOperation Update(WaitUntil wai /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -411,7 +411,7 @@ public virtual async Task CancelAsync(WaitUntil waitUntil, Migrati /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -443,5 +443,97 @@ public virtual ArmOperation Cancel(WaitUntil waitUntil, MigrationOperationInput throw; } } + + /// + /// Retry on going migration for the database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry + /// + /// + /// Operation Id + /// DatabaseMigrationsSqlDb_Retry + /// + /// + /// Default Api Version + /// 2025-06-30 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Required migration operation ID for which retry will be initiated. + /// The cancellation token to use. + /// is null. + public virtual async Task> RetryAsync(WaitUntil waitUntil, MigrationOperationInput input, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(input, nameof(input)); + + using var scope = _databaseMigrationSqlDBDatabaseMigrationsSqlDBClientDiagnostics.CreateScope("DatabaseMigrationSqlDBResource.Retry"); + scope.Start(); + try + { + var response = await _databaseMigrationSqlDBDatabaseMigrationsSqlDBRestClient.RetryAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, input, cancellationToken).ConfigureAwait(false); + var operation = new DataMigrationArmOperation(new DatabaseMigrationSqlDBOperationSource(Client), _databaseMigrationSqlDBDatabaseMigrationsSqlDBClientDiagnostics, Pipeline, _databaseMigrationSqlDBDatabaseMigrationsSqlDBRestClient.CreateRetryRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, input).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retry on going migration for the database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry + /// + /// + /// Operation Id + /// DatabaseMigrationsSqlDb_Retry + /// + /// + /// Default Api Version + /// 2025-06-30 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Required migration operation ID for which retry will be initiated. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Retry(WaitUntil waitUntil, MigrationOperationInput input, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(input, nameof(input)); + + using var scope = _databaseMigrationSqlDBDatabaseMigrationsSqlDBClientDiagnostics.CreateScope("DatabaseMigrationSqlDBResource.Retry"); + scope.Start(); + try + { + var response = _databaseMigrationSqlDBDatabaseMigrationsSqlDBRestClient.Retry(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, input, cancellationToken); + var operation = new DataMigrationArmOperation(new DatabaseMigrationSqlDBOperationSource(Client), _databaseMigrationSqlDBDatabaseMigrationsSqlDBClientDiagnostics, Pipeline, _databaseMigrationSqlDBDatabaseMigrationsSqlDBRestClient.CreateRetryRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, input).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } } } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlMICollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlMICollection.cs index d847c1303de2..79f31a98f184 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlMICollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlMICollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual Response Get(string managedInstan /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> ExistsAsync(string managedInstanceName /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual Response Exists(string managedInstanceName, string targetDB /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlMIResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlMIResource.cs index 5f21ac968631..04e0e99bd6b5 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlMIResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlMIResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync(Gui /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -174,6 +174,92 @@ public virtual Response Get(Guid? migrationOpera } } + /// + /// Delete Database Migration resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName} + /// + /// + /// Operation Id + /// DatabaseMigrationsSqlMi_Delete + /// + /// + /// Default Api Version + /// 2025-06-30 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// The cancellation token to use. + public virtual async Task> DeleteAsync(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _databaseMigrationSqlMIDatabaseMigrationsSqlMIClientDiagnostics.CreateScope("DatabaseMigrationSqlMIResource.Delete"); + scope.Start(); + try + { + var response = await _databaseMigrationSqlMIDatabaseMigrationsSqlMIRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force, cancellationToken).ConfigureAwait(false); + var operation = new DataMigrationArmOperation(new DatabaseMigrationSqlMIOperationSource(Client), _databaseMigrationSqlMIDatabaseMigrationsSqlMIClientDiagnostics, Pipeline, _databaseMigrationSqlMIDatabaseMigrationsSqlMIRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete Database Migration resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName} + /// + /// + /// Operation Id + /// DatabaseMigrationsSqlMi_Delete + /// + /// + /// Default Api Version + /// 2025-06-30 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _databaseMigrationSqlMIDatabaseMigrationsSqlMIClientDiagnostics.CreateScope("DatabaseMigrationSqlMIResource.Delete"); + scope.Start(); + try + { + var response = _databaseMigrationSqlMIDatabaseMigrationsSqlMIRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force, cancellationToken); + var operation = new DataMigrationArmOperation(new DatabaseMigrationSqlMIOperationSource(Client), _databaseMigrationSqlMIDatabaseMigrationsSqlMIClientDiagnostics, Pipeline, _databaseMigrationSqlMIDatabaseMigrationsSqlMIRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Create a new database migration to a given SQL Managed Instance. /// @@ -187,7 +273,7 @@ public virtual Response Get(Guid? migrationOpera /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -233,7 +319,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -279,7 +365,7 @@ public virtual ArmOperation Update(WaitUntil wai /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -325,7 +411,7 @@ public virtual async Task CancelAsync(WaitUntil waitUntil, Migrati /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -371,7 +457,7 @@ public virtual ArmOperation Cancel(WaitUntil waitUntil, MigrationOperationInput /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -417,7 +503,7 @@ public virtual async Task CutoverAsync(WaitUntil waitUntil, Migrat /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlVmCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlVmCollection.cs index 0b55b9a49fc2..c5ddf9b65d6d 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlVmCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlVmCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual Response Get(string sqlVirtualMac /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> ExistsAsync(string sqlVirtualMachineNa /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual Response Exists(string sqlVirtualMachineName, string target /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlVmResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlVmResource.cs index cb759455ed68..cc6ad0d0a297 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlVmResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/DatabaseMigrationSqlVmResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync(Gui /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -174,6 +174,92 @@ public virtual Response Get(Guid? migrationOpera } } + /// + /// Delete Database Migration resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName} + /// + /// + /// Operation Id + /// DatabaseMigrationsSqlVm_Delete + /// + /// + /// Default Api Version + /// 2025-06-30 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// The cancellation token to use. + public virtual async Task> DeleteAsync(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _databaseMigrationSqlVmDatabaseMigrationsSqlVmClientDiagnostics.CreateScope("DatabaseMigrationSqlVmResource.Delete"); + scope.Start(); + try + { + var response = await _databaseMigrationSqlVmDatabaseMigrationsSqlVmRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force, cancellationToken).ConfigureAwait(false); + var operation = new DataMigrationArmOperation(new DatabaseMigrationSqlVmOperationSource(Client), _databaseMigrationSqlVmDatabaseMigrationsSqlVmClientDiagnostics, Pipeline, _databaseMigrationSqlVmDatabaseMigrationsSqlVmRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete Database Migration resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName} + /// + /// + /// Operation Id + /// DatabaseMigrationsSqlVm_Delete + /// + /// + /// Default Api Version + /// 2025-06-30 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default) + { + using var scope = _databaseMigrationSqlVmDatabaseMigrationsSqlVmClientDiagnostics.CreateScope("DatabaseMigrationSqlVmResource.Delete"); + scope.Start(); + try + { + var response = _databaseMigrationSqlVmDatabaseMigrationsSqlVmRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force, cancellationToken); + var operation = new DataMigrationArmOperation(new DatabaseMigrationSqlVmOperationSource(Client), _databaseMigrationSqlVmDatabaseMigrationsSqlVmClientDiagnostics, Pipeline, _databaseMigrationSqlVmDatabaseMigrationsSqlVmRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, force).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Create a new database migration to a given SQL VM. /// @@ -187,7 +273,7 @@ public virtual Response Get(Guid? migrationOpera /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -233,7 +319,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -279,7 +365,7 @@ public virtual ArmOperation Update(WaitUntil wai /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -325,7 +411,7 @@ public virtual async Task CancelAsync(WaitUntil waitUntil, Migrati /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -371,7 +457,7 @@ public virtual ArmOperation Cancel(WaitUntil waitUntil, MigrationOperationInput /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -417,7 +503,7 @@ public virtual async Task CutoverAsync(WaitUntil waitUntil, Migrat /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/DataMigrationExtensions.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/DataMigrationExtensions.cs index eb1361107762..912de6d55818 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/DataMigrationExtensions.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/DataMigrationExtensions.cs @@ -234,7 +234,7 @@ public static DatabaseMigrationSqlDBCollection GetDatabaseMigrationSqlDBs(this R /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -275,7 +275,7 @@ public static async Task> GetDatabaseMi /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -333,7 +333,7 @@ public static DatabaseMigrationSqlMICollection GetDatabaseMigrationSqlMIs(this R /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -374,7 +374,7 @@ public static async Task> GetDatabaseMi /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -432,7 +432,7 @@ public static DatabaseMigrationSqlVmCollection GetDatabaseMigrationSqlVms(this R /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -473,7 +473,7 @@ public static async Task> GetDatabaseMi /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -531,7 +531,7 @@ public static SqlMigrationServiceCollection GetSqlMigrationServices(this Resourc /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -569,7 +569,7 @@ public static async Task> GetSqlMigrationS /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -624,7 +624,7 @@ public static DataMigrationServiceCollection GetDataMigrationServices(this Resou /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -662,7 +662,7 @@ public static async Task> GetDataMigratio /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -700,7 +700,7 @@ public static Response GetDataMigrationService(thi /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -736,7 +736,7 @@ public static AsyncPageable GetSqlMigrationServices /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -772,7 +772,7 @@ public static Pageable GetSqlMigrationServices(this /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// @@ -804,7 +804,7 @@ public static AsyncPageable GetSkusResourceSkusAsync(this Subs /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// @@ -836,7 +836,7 @@ public static Pageable GetSkusResourceSkus(this SubscriptionRe /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -872,7 +872,7 @@ public static AsyncPageable GetDataMigrationServic /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -908,7 +908,7 @@ public static Pageable GetDataMigrationServices(th /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -945,7 +945,7 @@ public static async Task> C /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -982,7 +982,7 @@ public static Response CheckDataMigr /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// @@ -1015,7 +1015,7 @@ public static AsyncPageable GetUsagesAsync(this Subscription /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/MockableDataMigrationResourceGroupResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/MockableDataMigrationResourceGroupResource.cs index f9a4036de191..2503bfcd5000 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/MockableDataMigrationResourceGroupResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/MockableDataMigrationResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual DatabaseMigrationSqlDBCollection GetDatabaseMigrationSqlDBs() /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -87,7 +87,7 @@ public virtual async Task> GetDatabaseM /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -128,7 +128,7 @@ public virtual DatabaseMigrationSqlMICollection GetDatabaseMigrationSqlMIs() /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual async Task> GetDatabaseM /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -203,7 +203,7 @@ public virtual DatabaseMigrationSqlVmCollection GetDatabaseMigrationSqlVms() /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -237,7 +237,7 @@ public virtual async Task> GetDatabaseM /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -278,7 +278,7 @@ public virtual SqlMigrationServiceCollection GetSqlMigrationServices() /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> GetSqlMigration /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -347,7 +347,7 @@ public virtual DataMigrationServiceCollection GetDataMigrationServices() /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -378,7 +378,7 @@ public virtual async Task> GetDataMigrati /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/MockableDataMigrationSubscriptionResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/MockableDataMigrationSubscriptionResource.cs index 692957eefc84..bbe10d9f2e8a 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/MockableDataMigrationSubscriptionResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Extensions/MockableDataMigrationSubscriptionResource.cs @@ -67,7 +67,7 @@ private string GetApiVersionOrNull(Core.ResourceType resourceType) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -97,7 +97,7 @@ public virtual AsyncPageable GetSqlMigrationService /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -127,7 +127,7 @@ public virtual Pageable GetSqlMigrationServices(Can /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// @@ -153,7 +153,7 @@ public virtual AsyncPageable GetSkusResourceSkusAsync(Cancella /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// @@ -179,7 +179,7 @@ public virtual Pageable GetSkusResourceSkus(CancellationToken /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual AsyncPageable GetDataMigrationServi /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -239,7 +239,7 @@ public virtual Pageable GetDataMigrationServices(C /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -325,7 +325,7 @@ public virtual Response CheckDataMig /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// @@ -352,7 +352,7 @@ public virtual AsyncPageable GetUsagesAsync(AzureLocation lo /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlDbRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlDbRestOperations.cs index c9300f57a026..e3dcab7c6293 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlDbRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlDbRestOperations.cs @@ -32,7 +32,7 @@ public DatabaseMigrationsSqlDbRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -463,5 +463,105 @@ public Response Cancel(string subscriptionId, string resourceGroupName, string s throw new RequestFailedException(message.Response); } } + + internal RequestUriBuilder CreateRetryRequestUri(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, MigrationOperationInput input) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(sqlDBInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + uri.AppendPath("/retry", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateRetryRequest(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, MigrationOperationInput input) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/servers/", false); + uri.AppendPath(sqlDBInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + uri.AppendPath("/retry", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(input, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Retry on going migration for the database. + /// Subscription ID that identifies an Azure subscription. + /// Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// The to use. + /// The name of the target database. + /// Required migration operation ID for which retry will be initiated. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task RetryAsync(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, MigrationOperationInput input, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(sqlDBInstanceName, nameof(sqlDBInstanceName)); + Argument.AssertNotNullOrEmpty(targetDBName, nameof(targetDBName)); + Argument.AssertNotNull(input, nameof(input)); + + using var message = CreateRetryRequest(subscriptionId, resourceGroupName, sqlDBInstanceName, targetDBName, input); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retry on going migration for the database. + /// Subscription ID that identifies an Azure subscription. + /// Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// The to use. + /// The name of the target database. + /// Required migration operation ID for which retry will be initiated. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Retry(string subscriptionId, string resourceGroupName, string sqlDBInstanceName, string targetDBName, MigrationOperationInput input, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(sqlDBInstanceName, nameof(sqlDBInstanceName)); + Argument.AssertNotNullOrEmpty(targetDBName, nameof(targetDBName)); + Argument.AssertNotNull(input, nameof(input)); + + using var message = CreateRetryRequest(subscriptionId, resourceGroupName, sqlDBInstanceName, targetDBName, input); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } } } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlMiRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlMiRestOperations.cs index 238f58b2417d..0ef1dab20772 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlMiRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlMiRestOperations.cs @@ -32,7 +32,7 @@ public DatabaseMigrationsSqlMiRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -260,6 +260,110 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, bool? force) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Sql/managedInstances/", false); + uri.AppendPath(managedInstanceName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete Database Migration resource. + /// Subscription ID that identifies an Azure subscription. + /// Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// The to use. + /// The name of the target database. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(managedInstanceName, nameof(managedInstanceName)); + Argument.AssertNotNullOrEmpty(targetDBName, nameof(targetDBName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, managedInstanceName, targetDBName, force); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete Database Migration resource. + /// Subscription ID that identifies an Azure subscription. + /// Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// The to use. + /// The name of the target database. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(managedInstanceName, nameof(managedInstanceName)); + Argument.AssertNotNullOrEmpty(targetDBName, nameof(targetDBName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, managedInstanceName, targetDBName, force); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string managedInstanceName, string targetDBName, MigrationOperationInput input) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlVmRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlVmRestOperations.cs index e4c82492bb83..6e0c0d523484 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlVmRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/DatabaseMigrationsSqlVmRestOperations.cs @@ -32,7 +32,7 @@ public DatabaseMigrationsSqlVmRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -260,6 +260,110 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, bool? force) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVirtualMachineName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, bool? force) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/", false); + uri.AppendPath(sqlVirtualMachineName, true); + uri.AppendPath("/providers/Microsoft.DataMigration/databaseMigrations/", false); + uri.AppendPath(targetDBName, true); + if (force != null) + { + uri.AppendQuery("force", force.Value, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete Database Migration resource. + /// Subscription ID that identifies an Azure subscription. + /// Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// The to use. + /// The name of the target database. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(sqlVirtualMachineName, nameof(sqlVirtualMachineName)); + Argument.AssertNotNullOrEmpty(targetDBName, nameof(targetDBName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, sqlVirtualMachineName, targetDBName, force); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete Database Migration resource. + /// Subscription ID that identifies an Azure subscription. + /// Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// The to use. + /// The name of the target database. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, bool? force = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(sqlVirtualMachineName, nameof(sqlVirtualMachineName)); + Argument.AssertNotNullOrEmpty(targetDBName, nameof(targetDBName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, sqlVirtualMachineName, targetDBName, force); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateCancelRequestUri(string subscriptionId, string resourceGroupName, string sqlVirtualMachineName, string targetDBName, MigrationOperationInput input) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/FilesRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/FilesRestOperations.cs index e15ec4a40c76..c5ace388f97b 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/FilesRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/FilesRestOperations.cs @@ -32,7 +32,7 @@ public FilesRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ProjectsRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ProjectsRestOperations.cs index bc6fb6c6551a..045ea122c864 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ProjectsRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ProjectsRestOperations.cs @@ -32,7 +32,7 @@ public ProjectsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ResourceSkusRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ResourceSkusRestOperations.cs index a26242ce8520..1b386756fd63 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ResourceSkusRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ResourceSkusRestOperations.cs @@ -32,7 +32,7 @@ public ResourceSkusRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServiceTasksRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServiceTasksRestOperations.cs index 82c4d4f9af47..5b7c12444b3f 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServiceTasksRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServiceTasksRestOperations.cs @@ -32,7 +32,7 @@ public ServiceTasksRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServicesRestOperations.cs index cf1ed5beaa15..3e4bf75e3014 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/ServicesRestOperations.cs @@ -32,7 +32,7 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/SqlMigrationServicesRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/SqlMigrationServicesRestOperations.cs index c199b217562b..a50268add626 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/SqlMigrationServicesRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/SqlMigrationServicesRestOperations.cs @@ -32,7 +32,7 @@ public SqlMigrationServicesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/TasksRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/TasksRestOperations.cs index 6aa938c33e05..171afafd4f64 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/TasksRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/TasksRestOperations.cs @@ -32,7 +32,7 @@ public TasksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/UsagesRestOperations.cs index b61324d4ba1e..45dd8d27e7a6 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/RestOperations/UsagesRestOperations.cs @@ -32,7 +32,7 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-03-15-preview"; + _apiVersion = apiVersion ?? "2025-06-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskCollection.cs index 4352585fcefc..cfbb14074d4a 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string taskName, string /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(string task /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(string taskType = nul /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string taskName, string ex /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string taskName, string expand = null, Canc /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskResource.cs index db4554190792..ab64ab6f02a8 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ServiceServiceTaskResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(string expand = null, Ca /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? d /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -273,7 +273,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? deleteRunningTasks /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> UpdateAsync(Data /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual Response Update(DataMigrationProjectT /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -395,7 +395,7 @@ public virtual async Task> CancelAsync(Canc /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/SqlMigrationServiceCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/SqlMigrationServiceCollection.cs index 5d20f7a0f79e..bee258b8f8b5 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/SqlMigrationServiceCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/SqlMigrationServiceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string sqlMigrationServ /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string sqlMigrationService /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string sqlMigrationServiceName, Cancellatio /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/SqlMigrationServiceResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/SqlMigrationServiceResource.cs index ec1e8328a88e..52a8f0fb5670 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/SqlMigrationServiceResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/SqlMigrationServiceResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual async Task> GetAuthKeysA /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -436,7 +436,7 @@ public virtual Response GetAuthKeys(Cancellation /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -478,7 +478,7 @@ public virtual async Task> RegenerateAuthKey /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -520,7 +520,7 @@ public virtual Response RegenerateAuthKeys(SqlMigrati /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -562,7 +562,7 @@ public virtual async Task> DeleteN /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -604,7 +604,7 @@ public virtual Response DeleteNode(DeletedI /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -634,7 +634,7 @@ public virtual AsyncPageable GetMigrationsAsync(CancellationT /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -664,7 +664,7 @@ public virtual Pageable GetMigrations(CancellationToken cance /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -702,7 +702,7 @@ public virtual async Task> GetMonit /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -740,7 +740,7 @@ public virtual Response GetMonitoringData(Ca /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -802,7 +802,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -864,7 +864,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -921,7 +921,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -978,7 +978,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource @@ -1038,7 +1038,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2025-03-15-preview + /// 2025-06-30 /// /// /// Resource diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/autorest.md b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/autorest.md index 679cd6a5aae0..d6ef9e5e8cf1 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/autorest.md +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/autorest.md @@ -9,8 +9,8 @@ csharp: true library-name: DataMigration namespace: Azure.ResourceManager.DataMigration # default tag is a preview version -require: https://github.com/Azure/azure-rest-api-specs/blob/86c6306649b02e542117adb46c61e8019dbd78e9/specification/datamigration/resource-manager/readme.md -#tag: package-preview-2025-03 +require: https://github.com/Azure/azure-rest-api-specs/blob/8d4f7c60f2a1448a1442399aebf1fc17b208a253/specification/datamigration/resource-manager/readme.md +tag: package-2025-06 output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectCollection.cs index 38936216ec37..bf2af9299fb2 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DataMigrationProjectCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ProjectsCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Projects_CreateOrUpdate.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_CreateOrUpdate.json // this example is just showing the usage of "Projects_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_ProjectsCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_ProjectsGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Projects_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_Get.json // this example is just showing the usage of "Projects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_ProjectsGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_ProjectsList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Projects_List.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_List.json // this example is just showing the usage of "Projects_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task GetAll_ProjectsList() [Ignore("Only validating compilation of examples")] public async Task Exists_ProjectsGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Projects_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_Get.json // this example is just showing the usage of "Projects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task Exists_ProjectsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ProjectsGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Projects_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_Get.json // this example is just showing the usage of "Projects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectFileCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectFileCollection.cs index 0f6a66c89667..1f9927953de0 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectFileCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectFileCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DataMigrationProjectFileCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_FilesCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Files_CreateOrUpdate.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_CreateOrUpdate.json // this example is just showing the usage of "Files_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_FilesCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_FilesList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Files_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Get.json // this example is just showing the usage of "Files_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_FilesList() [Ignore("Only validating compilation of examples")] public async Task GetAll_FilesList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Files_List.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_List.json // this example is just showing the usage of "Files_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task GetAll_FilesList() [Ignore("Only validating compilation of examples")] public async Task Exists_FilesList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Files_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Get.json // this example is just showing the usage of "Files_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task Exists_FilesList() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_FilesList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Files_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Get.json // this example is just showing the usage of "Files_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectFileResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectFileResource.cs index a859816be26c..06982958bc71 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectFileResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectFileResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DataMigrationProjectFileResource [Ignore("Only validating compilation of examples")] public async Task Get_FilesList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Files_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Get.json // this example is just showing the usage of "Files_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_FilesList() [Ignore("Only validating compilation of examples")] public async Task Delete_FilesDelete() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Files_Delete.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Delete.json // this example is just showing the usage of "Files_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_FilesDelete() [Ignore("Only validating compilation of examples")] public async Task Update_FilesUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Files_Update.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Update.json // this example is just showing the usage of "Files_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Update_FilesUpdate() [Ignore("Only validating compilation of examples")] public async Task Read_FilesList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Files_Read.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Read.json // this example is just showing the usage of "Files_Read" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Read_FilesList() [Ignore("Only validating compilation of examples")] public async Task ReadWrite_FilesList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Files_ReadWrite.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_ReadWrite.json // this example is just showing the usage of "Files_ReadWrite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectResource.cs index bdfa25f6d8fc..19d2aed68cb1 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationProjectResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DataMigrationProjectResource [Ignore("Only validating compilation of examples")] public async Task Get_ProjectsGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Projects_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_Get.json // this example is just showing the usage of "Projects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_ProjectsGet() [Ignore("Only validating compilation of examples")] public async Task Delete_ProjectsDelete() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Projects_Delete.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_Delete.json // this example is just showing the usage of "Projects_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_ProjectsDelete() [Ignore("Only validating compilation of examples")] public async Task Update_ProjectsUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Projects_Update.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_Update.json // this example is just showing the usage of "Projects_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceCollection.cs index 816f71382c72..26c1422b7b67 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_DataMigrationServiceCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ServicesCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_CreateOrUpdate.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_CreateOrUpdate.json // this example is just showing the usage of "Services_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_ServicesCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_ServicesCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Get.json // this example is just showing the usage of "Services_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_ServicesCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task GetAll_ServicesListByResourceGroup() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_ListByResourceGroup.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_ListByResourceGroup.json // this example is just showing the usage of "Services_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task GetAll_ServicesListByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_ServicesCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Get.json // this example is just showing the usage of "Services_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task Exists_ServicesCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ServicesCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Get.json // this example is just showing the usage of "Services_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceResource.cs index bde0ca812f7f..b1f234884042 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DataMigrationServiceResource [Ignore("Only validating compilation of examples")] public async Task Get_ServicesCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Get.json // this example is just showing the usage of "Services_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_ServicesCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Delete_ServicesCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_Delete.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Delete.json // this example is just showing the usage of "Services_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_ServicesCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Update_ServicesCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_Update.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Update.json // this example is just showing the usage of "Services_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Update_ServicesCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task CheckStatus_ServicesCheckStatus() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_CheckStatus.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_CheckStatus.json // this example is just showing the usage of "Services_CheckStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -137,7 +137,7 @@ public async Task CheckStatus_ServicesCheckStatus() [Ignore("Only validating compilation of examples")] public async Task Start_ServicesStart() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_Start.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Start.json // this example is just showing the usage of "Services_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task Start_ServicesStart() [Ignore("Only validating compilation of examples")] public async Task Stop_ServicesStop() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_Stop.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Stop.json // this example is just showing the usage of "Services_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -189,7 +189,7 @@ public async Task Stop_ServicesStop() [Ignore("Only validating compilation of examples")] public async Task GetSkus_ServicesListSkus() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_ListSkus.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_ListSkus.json // this example is just showing the usage of "Services_ListSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -218,7 +218,7 @@ public async Task GetSkus_ServicesListSkus() [Ignore("Only validating compilation of examples")] public async Task CheckDataMigrationServiceNameAvailability_ServicesCheckChildrenNameAvailability() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_CheckChildrenNameAvailability.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_CheckChildrenNameAvailability.json // this example is just showing the usage of "Services_CheckChildrenNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceTaskCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceTaskCollection.cs index abd7aba6738f..9b449772d687 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceTaskCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceTaskCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DataMigrationServiceTaskCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_TasksCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Tasks_CreateOrUpdate.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_CreateOrUpdate.json // this example is just showing the usage of "Tasks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -70,7 +70,7 @@ public async Task CreateOrUpdate_TasksCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_TasksGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Tasks_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Get.json // this example is just showing the usage of "Tasks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -105,7 +105,7 @@ public async Task Get_TasksGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_TasksList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Tasks_List.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_List.json // this example is just showing the usage of "Tasks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,7 +142,7 @@ public async Task GetAll_TasksList() [Ignore("Only validating compilation of examples")] public async Task Exists_TasksGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Tasks_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Get.json // this example is just showing the usage of "Tasks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,7 +173,7 @@ public async Task Exists_TasksGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_TasksGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Tasks_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Get.json // this example is just showing the usage of "Tasks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceTaskResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceTaskResource.cs index 0d87361c13b5..0c617250addd 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceTaskResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DataMigrationServiceTaskResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DataMigrationServiceTaskResource [Ignore("Only validating compilation of examples")] public async Task Get_TasksGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Tasks_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Get.json // this example is just showing the usage of "Tasks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_TasksGet() [Ignore("Only validating compilation of examples")] public async Task Delete_TasksDelete() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Tasks_Delete.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Delete.json // this example is just showing the usage of "Tasks_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_TasksDelete() [Ignore("Only validating compilation of examples")] public async Task Update_TasksUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Tasks_Update.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Update.json // this example is just showing the usage of "Tasks_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Update_TasksUpdate() [Ignore("Only validating compilation of examples")] public async Task Cancel_TasksCancel() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Tasks_Cancel.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Cancel.json // this example is just showing the usage of "Tasks_Cancel" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -158,7 +158,7 @@ public async Task Cancel_TasksCancel() [Ignore("Only validating compilation of examples")] public async Task Command_TasksCommand() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Tasks_Command.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Command.json // this example is just showing the usage of "Tasks_Command" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlDBCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlDBCollection.cs index bf3f6f6e9f38..10ff860c7324 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlDBCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlDBCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_DatabaseMigrationSqlDBCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMaximumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbCreateOrUpdateDatabaseMigrationMAX.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCreateOrUpdateDatabaseMigrationMAX.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMaxi [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMinimumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbCreateOrUpdateDatabaseMigrationMIN.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCreateOrUpdateDatabaseMigrationMIN.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMini [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlDBDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task Get_GetSqlDBDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlDBDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -215,7 +215,7 @@ public async Task Get_GetSqlDBDatabaseMigrationWithoutTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSqlDBDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -246,7 +246,7 @@ public async Task Exists_GetSqlDBDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSqlDBDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -276,7 +276,7 @@ public async Task Exists_GetSqlDBDatabaseMigrationWithoutTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSqlDBDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -319,7 +319,7 @@ public async Task GetIfExists_GetSqlDBDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSqlDBDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlDBResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlDBResource.cs index e4c5534632d3..6d22bbec77ed 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlDBResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlDBResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DatabaseMigrationSqlDBResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlDBDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetSqlDBDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlDBDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetSqlDBDatabaseMigrationWithoutTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteDatabaseMigrationResource() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbDeleteDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbDeleteDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Delete_DeleteDatabaseMigrationResource() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMaximumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbCreateOrUpdateDatabaseMigrationMAX.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCreateOrUpdateDatabaseMigrationMAX.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMaximumParam [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMinimumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbCreateOrUpdateDatabaseMigrationMIN.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCreateOrUpdateDatabaseMigrationMIN.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -229,7 +229,7 @@ public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMinimumParam [Ignore("Only validating compilation of examples")] public async Task Cancel_StopOngoingMigrationForTheDatabase() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlDbCancelDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCancelDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlDb_Cancel" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -255,5 +255,41 @@ public async Task Cancel_StopOngoingMigrationForTheDatabase() Console.WriteLine("Succeeded"); } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Retry_RetryDatabaseMigrationResource() + { + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbRetryDatabaseMigration.json + // this example is just showing the usage of "DatabaseMigrationsSqlDb_Retry" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DatabaseMigrationSqlDBResource created on azure + // for more information of creating DatabaseMigrationSqlDBResource, please refer to the document of DatabaseMigrationSqlDBResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg"; + string sqlDBInstanceName = "sqldbinstance"; + string targetDBName = "db1"; + ResourceIdentifier databaseMigrationSqlDBResourceId = DatabaseMigrationSqlDBResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sqlDBInstanceName, targetDBName); + DatabaseMigrationSqlDBResource databaseMigrationSqlDB = client.GetDatabaseMigrationSqlDBResource(databaseMigrationSqlDBResourceId); + + // invoke the operation + MigrationOperationInput input = new MigrationOperationInput + { + MigrationOperationId = Guid.Parse("9a90bb84-e70f-46f7-b0ae-1aef5b3b9f07"), + }; + ArmOperation lro = await databaseMigrationSqlDB.RetryAsync(WaitUntil.Completed, input); + DatabaseMigrationSqlDBResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + DatabaseMigrationSqlDBData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } } } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlMICollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlMICollection.cs index 501f856b35d4..97b309c6003a 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlMICollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlMICollection.cs @@ -22,7 +22,7 @@ public partial class Sample_DatabaseMigrationSqlMICollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceFromAzureBlobUsingManagedIdentity() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationBlobManagedIdentity.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationBlobManagedIdentity.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceFromAzur [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMaximumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMAX.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationMAX.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMaxi [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMinimumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMIN.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationMIN.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -235,7 +235,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMini [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlMIDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -270,7 +270,7 @@ public async Task Get_GetSqlMIDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlMIDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -304,7 +304,7 @@ public async Task Get_GetSqlMIDatabaseMigrationWithoutTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSqlMIDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -335,7 +335,7 @@ public async Task Exists_GetSqlMIDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSqlMIDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -365,7 +365,7 @@ public async Task Exists_GetSqlMIDatabaseMigrationWithoutTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSqlMIDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -408,7 +408,7 @@ public async Task GetIfExists_GetSqlMIDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSqlMIDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlMIResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlMIResource.cs index f2c3dc7de33b..2cf26c906af3 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlMIResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlMIResource.cs @@ -21,7 +21,7 @@ public partial class Sample_DatabaseMigrationSqlMIResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlMIDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetSqlMIDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlMIDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,11 +80,43 @@ public async Task Get_GetSqlMIDatabaseMigrationWithoutTheExpandParameter() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Delete_DeleteDatabaseMigrationResourceWithMinimumParameters() + { + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiDeleteDatabaseMigration.json + // this example is just showing the usage of "DatabaseMigrationsSqlMi_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DatabaseMigrationSqlMIResource created on azure + // for more information of creating DatabaseMigrationSqlMIResource, please refer to the document of DatabaseMigrationSqlMIResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg"; + string managedInstanceName = "managedInstance1"; + string targetDBName = "db1"; + ResourceIdentifier databaseMigrationSqlMIResourceId = DatabaseMigrationSqlMIResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, managedInstanceName, targetDBName); + DatabaseMigrationSqlMIResource databaseMigrationSqlMI = client.GetDatabaseMigrationSqlMIResource(databaseMigrationSqlMIResourceId); + + // invoke the operation + ArmOperation lro = await databaseMigrationSqlMI.DeleteAsync(WaitUntil.Completed); + DatabaseMigrationSqlMIResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + DatabaseMigrationSqlMIData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateDatabaseMigrationResourceFromAzureBlobUsingManagedIdentity() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationBlobManagedIdentity.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationBlobManagedIdentity.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -149,7 +181,7 @@ public async Task Update_CreateOrUpdateDatabaseMigrationResourceFromAzureBlobUsi [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMaximumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMAX.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationMAX.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -221,7 +253,7 @@ public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMaximumParam [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMinimumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMIN.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationMIN.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -288,7 +320,7 @@ public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMinimumParam [Ignore("Only validating compilation of examples")] public async Task Cancel_StopOngoingMigrationForTheDatabase() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiCancelDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCancelDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_Cancel" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -319,7 +351,7 @@ public async Task Cancel_StopOngoingMigrationForTheDatabase() [Ignore("Only validating compilation of examples")] public async Task Cutover_CutoverOnlineMigrationOperationForTheDatabase() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlMiCutoverDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCutoverDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlMi_Cutover" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlVmCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlVmCollection.cs index c8a663d76fa0..58dea92e2c0b 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlVmCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlVmCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_DatabaseMigrationSqlVmCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMaximumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMAX.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCreateOrUpdateDatabaseMigrationMAX.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMaxi [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMinimumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMIN.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCreateOrUpdateDatabaseMigrationMIN.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatabaseMigrationResourceWithMini [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlVMDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -201,7 +201,7 @@ public async Task Get_GetSqlVMDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlVMDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -235,7 +235,7 @@ public async Task Get_GetSqlVMDatabaseMigrationWithoutTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSqlVMDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -266,7 +266,7 @@ public async Task Exists_GetSqlVMDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSqlVMDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -296,7 +296,7 @@ public async Task Exists_GetSqlVMDatabaseMigrationWithoutTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSqlVMDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -339,7 +339,7 @@ public async Task GetIfExists_GetSqlVMDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSqlVMDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlVmResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlVmResource.cs index be1a335b5103..b2ce95ab158e 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlVmResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_DatabaseMigrationSqlVmResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DatabaseMigrationSqlVmResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlVMDatabaseMigrationWithTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmGetDatabaseMigrationExpanded.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigrationExpanded.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetSqlVMDatabaseMigrationWithTheExpandParameter() [Ignore("Only validating compilation of examples")] public async Task Get_GetSqlVMDatabaseMigrationWithoutTheExpandParameter() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmGetDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,11 +79,43 @@ public async Task Get_GetSqlVMDatabaseMigrationWithoutTheExpandParameter() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Delete_CreateOrUpdateDatabaseMigrationResourceWithMinimumParameters() + { + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmDeleteDatabaseMigration.json + // this example is just showing the usage of "DatabaseMigrationsSqlVm_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DatabaseMigrationSqlVmResource created on azure + // for more information of creating DatabaseMigrationSqlVmResource, please refer to the document of DatabaseMigrationSqlVmResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + string resourceGroupName = "testrg"; + string sqlVirtualMachineName = "testvm"; + string targetDBName = "db1"; + ResourceIdentifier databaseMigrationSqlVmResourceId = DatabaseMigrationSqlVmResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sqlVirtualMachineName, targetDBName); + DatabaseMigrationSqlVmResource databaseMigrationSqlVm = client.GetDatabaseMigrationSqlVmResource(databaseMigrationSqlVmResourceId); + + // invoke the operation + ArmOperation lro = await databaseMigrationSqlVm.DeleteAsync(WaitUntil.Completed); + DatabaseMigrationSqlVmResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + DatabaseMigrationSqlVmData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMaximumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMAX.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCreateOrUpdateDatabaseMigrationMAX.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +187,7 @@ public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMaximumParam [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMinimumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMIN.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCreateOrUpdateDatabaseMigrationMIN.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -222,7 +254,7 @@ public async Task Update_CreateOrUpdateDatabaseMigrationResourceWithMinimumParam [Ignore("Only validating compilation of examples")] public async Task Cancel_StopOngoingMigrationForTheDatabase() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmCancelDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCancelDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_Cancel" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -253,7 +285,7 @@ public async Task Cancel_StopOngoingMigrationForTheDatabase() [Ignore("Only validating compilation of examples")] public async Task Cutover_CutoverOnlineMigrationOperationForTheDatabase() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/SqlVmCutoverDatabaseMigration.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCutoverDatabaseMigration.json // this example is just showing the usage of "DatabaseMigrationsSqlVm_Cutover" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_ServiceServiceTaskCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_ServiceServiceTaskCollection.cs index bb4c29e62d8a..4b37d30693c4 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_ServiceServiceTaskCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_ServiceServiceTaskCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ServiceServiceTaskCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_TasksCreateOrUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ServiceTasks_CreateOrUpdate.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_CreateOrUpdate.json // this example is just showing the usage of "ServiceTasks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_TasksCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_TasksGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ServiceTasks_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Get.json // this example is just showing the usage of "ServiceTasks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_TasksGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_ServiceTasksList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ServiceTasks_List.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_List.json // this example is just showing the usage of "ServiceTasks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task GetAll_ServiceTasksList() [Ignore("Only validating compilation of examples")] public async Task Exists_TasksGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ServiceTasks_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Get.json // this example is just showing the usage of "ServiceTasks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +162,7 @@ public async Task Exists_TasksGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_TasksGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ServiceTasks_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Get.json // this example is just showing the usage of "ServiceTasks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_ServiceServiceTaskResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_ServiceServiceTaskResource.cs index fd1c4a24e3a4..dbea67fceeba 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_ServiceServiceTaskResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_ServiceServiceTaskResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ServiceServiceTaskResource [Ignore("Only validating compilation of examples")] public async Task Get_TasksGet() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ServiceTasks_Get.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Get.json // this example is just showing the usage of "ServiceTasks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_TasksGet() [Ignore("Only validating compilation of examples")] public async Task Delete_TasksDelete() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ServiceTasks_Delete.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Delete.json // this example is just showing the usage of "ServiceTasks_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_TasksDelete() [Ignore("Only validating compilation of examples")] public async Task Update_TasksUpdate() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ServiceTasks_Update.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Update.json // this example is just showing the usage of "ServiceTasks_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -116,7 +116,7 @@ public async Task Update_TasksUpdate() [Ignore("Only validating compilation of examples")] public async Task Cancel_TasksCancel() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ServiceTasks_Cancel.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Cancel.json // this example is just showing the usage of "ServiceTasks_Cancel" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SqlMigrationServiceCollection.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SqlMigrationServiceCollection.cs index 8e800fae4077..c53053611bce 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SqlMigrationServiceCollection.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SqlMigrationServiceCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SqlMigrationServiceCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateSQLMigrationServiceWithMaximumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/CreateOrUpdateSqlMigrationServiceMAX.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CreateOrUpdateSqlMigrationServiceMAX.json // this example is just showing the usage of "SqlMigrationServices_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task CreateOrUpdate_CreateOrUpdateSQLMigrationServiceWithMaximumPar [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateSQLMigrationServiceWithMinimumParameters() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/CreateOrUpdateSqlMigrationServiceMIN.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CreateOrUpdateSqlMigrationServiceMIN.json // this example is just showing the usage of "SqlMigrationServices_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task CreateOrUpdate_CreateOrUpdateSQLMigrationServiceWithMinimumPar [Ignore("Only validating compilation of examples")] public async Task Get_GetMigrationService() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/GetSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Get_GetMigrationService() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetMigrationServicesInTheResourceGroup() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ListByResourceGroupSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListByResourceGroupSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -158,7 +158,7 @@ public async Task GetAll_GetMigrationServicesInTheResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetMigrationService() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/GetSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -187,7 +187,7 @@ public async Task Exists_GetMigrationService() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetMigrationService() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/GetSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SqlMigrationServiceResource.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SqlMigrationServiceResource.cs index 4cc332e62639..78cf2b3ff20f 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SqlMigrationServiceResource.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SqlMigrationServiceResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SqlMigrationServiceResource [Ignore("Only validating compilation of examples")] public async Task Get_GetMigrationService() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/GetSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetMigrationService() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteSQLMigrationService() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/DeleteSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/DeleteSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_DeleteSQLMigrationService() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateSQLMigrationService() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/UpdateSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/UpdateSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Update_UpdateSQLMigrationService() [Ignore("Only validating compilation of examples")] public async Task GetAuthKeys_RetrieveTheListOfAuthenticationKeys() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ListAuthKeysSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListAuthKeysSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_ListAuthKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,7 +140,7 @@ public async Task GetAuthKeys_RetrieveTheListOfAuthenticationKeys() [Ignore("Only validating compilation of examples")] public async Task RegenerateAuthKeys_RegenerateTheOfAuthenticationKeys() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/RegenAuthKeysSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/RegenAuthKeysSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_RegenerateAuthKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task RegenerateAuthKeys_RegenerateTheOfAuthenticationKeys() [Ignore("Only validating compilation of examples")] public async Task DeleteNode_DeleteTheIntegrationRuntimeNode() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/DeleteIntegrationRuntimeNode.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/DeleteIntegrationRuntimeNode.json // this example is just showing the usage of "SqlMigrationServices_DeleteNode" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -201,7 +201,7 @@ public async Task DeleteNode_DeleteTheIntegrationRuntimeNode() [Ignore("Only validating compilation of examples")] public async Task GetMigrations_ListDatabaseMigrationsAttachedToTheService() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ListMigrationsBySqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListMigrationsBySqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_ListMigrations" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -230,7 +230,7 @@ public async Task GetMigrations_ListDatabaseMigrationsAttachedToTheService() [Ignore("Only validating compilation of examples")] public async Task GetMonitoringData_RetrieveTheMonitoringData() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/GetMonitorDataSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetMonitorDataSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_ListMonitoringData" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 77504d5224d8..eb1eaff3fa2f 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetSqlMigrationServices_GetServicesInTheSubscriptions() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ListBySubscriptionSqlMigrationService.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListBySubscriptionSqlMigrationService.json // this example is just showing the usage of "SqlMigrationServices_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task GetSqlMigrationServices_GetServicesInTheSubscriptions() [Ignore("Only validating compilation of examples")] public async Task GetSkusResourceSkus_ListSkus() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/ResourceSkus_ListSkus.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ResourceSkus_ListSkus.json // this example is just showing the usage of "ResourceSkus_ListSkus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task GetSkusResourceSkus_ListSkus() [Ignore("Only validating compilation of examples")] public async Task GetDataMigrationServices_ServicesList() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_List.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_List.json // this example is just showing the usage of "Services_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task GetDataMigrationServices_ServicesList() [Ignore("Only validating compilation of examples")] public async Task CheckDataMigrationNameAvailability_ServicesCheckNameAvailability() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Services_CheckNameAvailability.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_CheckNameAvailability.json // this example is just showing the usage of "Services_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,7 +140,7 @@ public async Task CheckDataMigrationNameAvailability_ServicesCheckNameAvailabili [Ignore("Only validating compilation of examples")] public async Task GetUsages_ServicesUsages() { - // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2025-03-15-preview/examples/Usages_List.json + // Generated from example definition: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Usages_List.json // this example is just showing the usage of "Usages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line