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

package com.azure.resourcemanager.sql.generated;

import com.azure.core.util.Context;

/** Samples for DatabaseExtensionsOperation ListByDatabase. */
public final class DatabaseExtensionsOperationListByDatabaseSamples {
    /*
     * x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/stable/2021-11-01/examples/ListDatabaseExtensions.json
     */
    /**
     * Sample code: List database extensions.
     *
     * @param azure The entry point for accessing resource management APIs in Azure.
     */
    public static void listDatabaseExtensions(com.azure.resourcemanager.AzureResourceManager azure) {
        azure
            .sqlServers()
            .manager()
            .serviceClient()
            .getDatabaseExtensionsOperations()
            .listByDatabase(
                "rg_4007c5a9-b3b0-41e1-bd46-9eef38768a4a",
                "srv_3b67ec2a-519b-43a7-8533-fb62dce3431e",
                "719d8fa4-bf0f-48fc-8cd3-ef40fe6ba1fe",
                Context.NONE);
    }
}
