// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.synapse.generated;

import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition;

/** Samples for SqlPools Rename. */
public final class SqlPoolsRenameSamples {
    /*
     * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RenameSqlPool.json
     */
    /**
     * Sample code: Rename a SQL Analytics pool.
     *
     * @param manager Entry point to SynapseManager.
     */
    public static void renameASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) {
        manager
            .sqlPools()
            .renameWithResponse(
                "Default-SQL-SouthEastAsia",
                "testsvr",
                "testdb",
                new ResourceMoveDefinition()
                    .withId(
                        "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/testsvr/sqlPools/newtestdb"),
                com.azure.core.util.Context.NONE);
    }
}
