Skip to content

New cmdlets for managed database move and copy operations #22012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 30 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d0f508b
Generate move operations files in Sdk folder
MDCS-sql May 10, 2023
b3e5f81
move and copy commands impl
MDCS-sql May 23, 2023
a5b1d47
Merge branch 'main' of https://github.com/Azure/azure-powershell into…
MDCS-sql May 23, 2023
c33264e
re-generate sdk files
MDCS-sql May 23, 2023
1b0b695
Finish all commands initial implementation
MDCS-sql May 26, 2023
a16a1a8
Help files generated and populated
MDCS-sql May 30, 2023
38bf595
first test
MDCS-sql Jun 7, 2023
aeeaeb3
pull upstream main
MDCS-sql Jun 7, 2023
ae9c4ea
fix merge conflicts
MDCS-sql Jun 7, 2023
6fa2e8e
Fix piping
MDCS-sql Jun 8, 2023
612603a
tests for move
MDCS-sql Jun 8, 2023
b913a55
fix one test
MDCS-sql Jun 8, 2023
3afbd05
Merge branch 'main' of https://github.com/Azure/azure-powershell into…
MDCS-sql Jun 8, 2023
90b2dd8
copy tests
MDCS-sql Jun 12, 2023
8195079
Change log
MDCS-sql Jun 12, 2023
27f52fc
Re-generate help files and fix readme in sdk
MDCS-sql Jun 12, 2023
ddcacae
pin version for sdk move operations
MDCS-sql Jun 12, 2023
015fa15
Remove prompt from examples
MDCS-sql Jun 12, 2023
2324f19
Fix parameter set and replace instance object with operation object w…
MDCS-sql Jun 12, 2023
6dada65
Filter target RG on the client side
MDCS-sql Jun 12, 2023
eb80f71
rename parameter set
MDCS-sql Jun 13, 2023
06c99dc
regenerate help files
MDCS-sql Jun 13, 2023
12b886c
Fix some issues and addressing comments
MDCS-sql Jun 13, 2023
f8b4cc2
Adding parameter set check for get commands
MDCS-sql Jun 14, 2023
9e38c38
Recording tests after changing the code
MDCS-sql Jun 14, 2023
e19ce81
Improving help messages
MDCS-sql Jun 14, 2023
2376811
Address more comments
MDCS-sql Jun 14, 2023
e4e317b
Merge branch 'main' into moveCopy
milanbrkic-ms Jun 15, 2023
4ab6888
merge upstream
MDCS-sql Jun 20, 2023
23b83b3
pull remote and fix conflict
MDCS-sql Jun 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions src/Sql/Sql.Sdk/Generated/IManagedDatabaseMoveOperations.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.Sql
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Microsoft.Rest.Azure.OData;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// ManagedDatabaseMoveOperations operations.
/// </summary>
public partial interface IManagedDatabaseMoveOperations
{
/// <summary>
/// Lists managed database move operations.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
/// </param>
/// <param name='locationName'>
/// </param>
/// <param name='odataQuery'>
/// OData parameters to apply to the operation.
/// </param>
/// <param name='onlyLatestPerDatabase'>
/// Whether or not to only get the latest operation for each database.
/// Has higher priority than $filter.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<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));
/// <summary>
/// Gets a managed database move operation.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
/// </param>
/// <param name='locationName'>
/// </param>
/// <param name='operationId'>
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ManagedDatabaseMoveOperationResult>> GetWithHttpMessagesAsync(string resourceGroupName, string locationName, System.Guid operationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists managed database move operations.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ManagedDatabaseMoveOperationResult>>> ListByLocationNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
6 changes: 5 additions & 1 deletion src/Sql/Sql.Sdk/Generated/ISqlManagementClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,14 @@ public partial interface ISqlManagementClient : System.IDisposable
/// </summary>
IManagedDatabasesOperations ManagedDatabases { get; }

/// <summary>
/// Gets the IManagedDatabaseMoveOperations.
/// </summary>
IManagedDatabaseMoveOperations ManagedDatabaseMoveOperations { get; }

/// <summary>
/// Gets the IFailoverGroupsOperations.
/// </summary>
IFailoverGroupsOperations FailoverGroups { get; }

}
}
Loading