/* * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ManagedInstanceAdvancedThreatProtection, ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams, AdvancedThreatProtectionName, ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams, ManagedInstanceAdvancedThreatProtectionSettingsGetResponse, ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams, ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse } from "../models"; /// /** Interface representing a ManagedInstanceAdvancedThreatProtectionSettings. */ export interface ManagedInstanceAdvancedThreatProtectionSettings { /** * Get the managed instance's Advanced Threat Protection settings. * @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. * @param options The options parameters. */ listByInstance( resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams ): PagedAsyncIterableIterator; /** * Get a managed instance's Advanced Threat Protection state. * @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. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param options The options parameters. */ get( resourceGroupName: string, managedInstanceName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, options?: ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams ): Promise; /** * Creates or updates Advanced Threat Protection settings. * @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. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param parameters The managed instance Advanced Threat Protection state. * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ManagedInstanceAdvancedThreatProtection, options?: ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< OperationState< ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse >, ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse > >; /** * Creates or updates Advanced Threat Protection settings. * @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. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param parameters The managed instance Advanced Threat Protection state. * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ManagedInstanceAdvancedThreatProtection, options?: ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams ): Promise< ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse >; }