// 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.VulnerabilityAssessmentName;

/** Samples for SqlPoolVulnerabilityAssessmentScans InitiateScan. */
public final class SqlPoolVulnerabilityAssessmentScansInitiateScanSamples {
    /*
     * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExecuteSqlPoolVulnerabilityAssessmentScans.json
     */
    /**
     * Sample code: Executes a Sql pool's vulnerability assessment scan.
     *
     * @param manager Entry point to SynapseManager.
     */
    public static void executesASqlPoolSVulnerabilityAssessmentScan(
        com.azure.resourcemanager.synapse.SynapseManager manager) {
        manager
            .sqlPoolVulnerabilityAssessmentScans()
            .initiateScan(
                "vulnerabilityassessmenttest-4711",
                "vulnerabilityassessmenttest-6411",
                "testdb",
                VulnerabilityAssessmentName.DEFAULT,
                "scan01",
                com.azure.core.util.Context.NONE);
    }
}
