Skip to content

Commit 29d9fce

Browse files
New cmdlets for managed database move and copy operations (Azure#22012)
* Generate move operations files in Sdk folder * move and copy commands impl * re-generate sdk files * Finish all commands initial implementation * Help files generated and populated * first test * fix merge conflicts * Fix piping * tests for move * fix one test * copy tests * Change log * Re-generate help files and fix readme in sdk * pin version for sdk move operations * Remove prompt from examples * Fix parameter set and replace instance object with operation object which will be more useful forr customers * Filter target RG on the client side * rename parameter set * regenerate help files * Fix some issues and addressing comments * Adding parameter set check for get commands * Recording tests after changing the code * Improving help messages * Address more comments --------- Co-authored-by: Milan Brkic <[email protected]>
1 parent 7233697 commit 29d9fce

File tree

41 files changed

+23963
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+23963
-3
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.Sql
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Microsoft.Rest.Azure.OData;
16+
using Models;
17+
using System.Collections;
18+
using System.Collections.Generic;
19+
using System.Threading;
20+
using System.Threading.Tasks;
21+
22+
/// <summary>
23+
/// ManagedDatabaseMoveOperations operations.
24+
/// </summary>
25+
public partial interface IManagedDatabaseMoveOperations
26+
{
27+
/// <summary>
28+
/// Lists managed database move operations.
29+
/// </summary>
30+
/// <param name='resourceGroupName'>
31+
/// The name of the resource group that contains the resource. You can
32+
/// obtain this value from the Azure Resource Manager API or the
33+
/// portal.
34+
/// </param>
35+
/// <param name='locationName'>
36+
/// </param>
37+
/// <param name='odataQuery'>
38+
/// OData parameters to apply to the operation.
39+
/// </param>
40+
/// <param name='onlyLatestPerDatabase'>
41+
/// Whether or not to only get the latest operation for each database.
42+
/// Has higher priority than $filter.
43+
/// </param>
44+
/// <param name='customHeaders'>
45+
/// The headers that will be added to request.
46+
/// </param>
47+
/// <param name='cancellationToken'>
48+
/// The cancellation token.
49+
/// </param>
50+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
51+
/// Thrown when the operation returned an invalid status code
52+
/// </exception>
53+
/// <exception cref="Microsoft.Rest.SerializationException">
54+
/// Thrown when unable to deserialize the response
55+
/// </exception>
56+
/// <exception cref="Microsoft.Rest.ValidationException">
57+
/// Thrown when a required parameter is null
58+
/// </exception>
59+
Task<AzureOperationResponse<IPage<ManagedDatabaseMoveOperationResult>>> ListByLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, ODataQuery<ManagedDatabaseMoveOperationResult> odataQuery = default(ODataQuery<ManagedDatabaseMoveOperationResult>), bool? onlyLatestPerDatabase = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
60+
/// <summary>
61+
/// Gets a managed database move operation.
62+
/// </summary>
63+
/// <param name='resourceGroupName'>
64+
/// The name of the resource group that contains the resource. You can
65+
/// obtain this value from the Azure Resource Manager API or the
66+
/// portal.
67+
/// </param>
68+
/// <param name='locationName'>
69+
/// </param>
70+
/// <param name='operationId'>
71+
/// </param>
72+
/// <param name='customHeaders'>
73+
/// The headers that will be added to request.
74+
/// </param>
75+
/// <param name='cancellationToken'>
76+
/// The cancellation token.
77+
/// </param>
78+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
79+
/// Thrown when the operation returned an invalid status code
80+
/// </exception>
81+
/// <exception cref="Microsoft.Rest.SerializationException">
82+
/// Thrown when unable to deserialize the response
83+
/// </exception>
84+
/// <exception cref="Microsoft.Rest.ValidationException">
85+
/// Thrown when a required parameter is null
86+
/// </exception>
87+
Task<AzureOperationResponse<ManagedDatabaseMoveOperationResult>> GetWithHttpMessagesAsync(string resourceGroupName, string locationName, System.Guid operationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
88+
/// <summary>
89+
/// Lists managed database move operations.
90+
/// </summary>
91+
/// <param name='nextPageLink'>
92+
/// The NextLink from the previous successful call to List operation.
93+
/// </param>
94+
/// <param name='customHeaders'>
95+
/// The headers that will be added to request.
96+
/// </param>
97+
/// <param name='cancellationToken'>
98+
/// The cancellation token.
99+
/// </param>
100+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
101+
/// Thrown when the operation returned an invalid status code
102+
/// </exception>
103+
/// <exception cref="Microsoft.Rest.SerializationException">
104+
/// Thrown when unable to deserialize the response
105+
/// </exception>
106+
/// <exception cref="Microsoft.Rest.ValidationException">
107+
/// Thrown when a required parameter is null
108+
/// </exception>
109+
Task<AzureOperationResponse<IPage<ManagedDatabaseMoveOperationResult>>> ListByLocationNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
110+
}
111+
}

src/Sql/Sql.Sdk/Generated/ISqlManagementClient.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,10 +508,14 @@ public partial interface ISqlManagementClient : System.IDisposable
508508
/// </summary>
509509
IManagedDatabasesOperations ManagedDatabases { get; }
510510

511+
/// <summary>
512+
/// Gets the IManagedDatabaseMoveOperations.
513+
/// </summary>
514+
IManagedDatabaseMoveOperations ManagedDatabaseMoveOperations { get; }
515+
511516
/// <summary>
512517
/// Gets the IFailoverGroupsOperations.
513518
/// </summary>
514519
IFailoverGroupsOperations FailoverGroups { get; }
515-
516520
}
517521
}

0 commit comments

Comments
 (0)