/* * 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 { ServerAdvancedThreatProtection, ServerAdvancedThreatProtectionSettingsListByServerOptionalParams, AdvancedThreatProtectionName, ServerAdvancedThreatProtectionSettingsGetOptionalParams, ServerAdvancedThreatProtectionSettingsGetResponse, ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams, ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse } from "../models"; /// /** Interface representing a ServerAdvancedThreatProtectionSettings. */ export interface ServerAdvancedThreatProtectionSettings { /** * Get a list of the server's Advanced Threat Protection states. * @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?: ServerAdvancedThreatProtectionSettingsListByServerOptionalParams ): PagedAsyncIterableIterator; /** * Get a server'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 serverName The name of the server. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param options The options parameters. */ get( resourceGroupName: string, serverName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, options?: ServerAdvancedThreatProtectionSettingsGetOptionalParams ): Promise; /** * Creates or updates an 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 serverName The name of the server. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param parameters The server Advanced Threat Protection state. * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, serverName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ServerAdvancedThreatProtection, options?: ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< OperationState< ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse >, ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse > >; /** * Creates or updates an 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 serverName The name of the server. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param parameters The server Advanced Threat Protection state. * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ServerAdvancedThreatProtection, options?: ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams ): Promise; }