/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SqlVulnerabilityAssessment, SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams, SqlVulnerabilityAssessmentName, SqlVulnerabilityAssessmentsSettingsGetOptionalParams, SqlVulnerabilityAssessmentsSettingsGetResponse, VulnerabilityAssessmentName, SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams, SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse } from "../models"; /// /** Interface representing a SqlVulnerabilityAssessmentsSettings. */ export interface SqlVulnerabilityAssessmentsSettings { /** * Lists SQL Vulnerability Assessment policies associated with a server. * @param 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 serverName The name of the server. * @param options The options parameters. */ listByServer( resourceGroupName: string, serverName: string, options?: SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams ): PagedAsyncIterableIterator; /** * Gets SQL Vulnerability Assessment policy. * @param 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 serverName The name of the server. * @param vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. * @param options The options parameters. */ get( resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentsSettingsGetOptionalParams ): Promise; /** * Creates or updates SQL Vulnerability Assessment policy. * @param 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 serverName The name of the server. * @param vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. * @param parameters The requested resource. * @param options The options parameters. */ createOrUpdate( resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: SqlVulnerabilityAssessment, options?: SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams ): Promise; }