/* * 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 { ManagedInstanceEncryptionProtector, ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams, EncryptionProtectorName, ManagedInstanceEncryptionProtectorsRevalidateOptionalParams, ManagedInstanceEncryptionProtectorsGetOptionalParams, ManagedInstanceEncryptionProtectorsGetResponse, ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams, ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse } from "../models"; /// /** Interface representing a ManagedInstanceEncryptionProtectors. */ export interface ManagedInstanceEncryptionProtectors { /** * Gets a list of managed instance encryption protectors * @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?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams ): PagedAsyncIterableIterator; /** * Revalidates an existing encryption protector. * @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 encryptionProtectorName The name of the encryption protector to be updated. * @param options The options parameters. */ beginRevalidate( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams ): Promise, void>>; /** * Revalidates an existing encryption protector. * @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 encryptionProtectorName The name of the encryption protector to be updated. * @param options The options parameters. */ beginRevalidateAndWait( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams ): Promise; /** * Gets a managed instance encryption protector. * @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 encryptionProtectorName The name of the encryption protector to be retrieved. * @param options The options parameters. */ get( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, options?: ManagedInstanceEncryptionProtectorsGetOptionalParams ): Promise; /** * Updates an existing encryption protector. * @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 encryptionProtectorName The name of the encryption protector to be updated. * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: ManagedInstanceEncryptionProtector, options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< OperationState, ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse > >; /** * Updates an existing encryption protector. * @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 encryptionProtectorName The name of the encryption protector to be updated. * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: ManagedInstanceEncryptionProtector, options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams ): Promise; }