/* * 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 { ManagedInstanceVulnerabilityAssessment, ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams, VulnerabilityAssessmentName, ManagedInstanceVulnerabilityAssessmentsGetOptionalParams, ManagedInstanceVulnerabilityAssessmentsGetResponse, ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams, ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse, ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams } from "../models"; /// /** Interface representing a ManagedInstanceVulnerabilityAssessments. */ export interface ManagedInstanceVulnerabilityAssessments { /** * Gets the managed instance's vulnerability assessment policies. * @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 managedInstanceName The name of the managed instance for which the vulnerability assessments * is defined. * @param options The options parameters. */ listByInstance( resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams ): PagedAsyncIterableIterator; /** * Gets the managed instance's vulnerability assessment. * @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 managedInstanceName The name of the managed instance for which the vulnerability assessment * is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ get( resourceGroupName: string, managedInstanceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: ManagedInstanceVulnerabilityAssessmentsGetOptionalParams ): Promise; /** * Creates or updates the managed instance's vulnerability assessment. Learn more about setting SQL * vulnerability assessment with managed identity - * https://docs.microsoft.com/azure/azure-sql/database/sql-database-vulnerability-assessment-storage * @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 managedInstanceName The name of the managed instance for which the vulnerability assessment * is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters The requested resource. * @param options The options parameters. */ createOrUpdate( resourceGroupName: string, managedInstanceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: ManagedInstanceVulnerabilityAssessment, options?: ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams ): Promise; /** * Removes the managed instance's vulnerability assessment. * @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 managedInstanceName The name of the managed instance for which the vulnerability assessment * is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ delete( resourceGroupName: string, managedInstanceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams ): Promise; }