/*
* 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 {
ManagedInstanceAdministrator,
ManagedInstanceAdministratorsListByInstanceOptionalParams,
AdministratorName,
ManagedInstanceAdministratorsGetOptionalParams,
ManagedInstanceAdministratorsGetResponse,
ManagedInstanceAdministratorsCreateOrUpdateOptionalParams,
ManagedInstanceAdministratorsCreateOrUpdateResponse,
ManagedInstanceAdministratorsDeleteOptionalParams
} from "../models";
///
/** Interface representing a ManagedInstanceAdministrators. */
export interface ManagedInstanceAdministrators {
/**
* Gets a list of managed instance administrators.
* @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?: ManagedInstanceAdministratorsListByInstanceOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a managed instance administrator.
* @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 administratorName
* @param options The options parameters.
*/
get(
resourceGroupName: string,
managedInstanceName: string,
administratorName: AdministratorName,
options?: ManagedInstanceAdministratorsGetOptionalParams
): Promise;
/**
* Creates or updates a managed instance administrator.
* @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 administratorName
* @param parameters The requested administrator parameters.
* @param options The options parameters.
*/
beginCreateOrUpdate(
resourceGroupName: string,
managedInstanceName: string,
administratorName: AdministratorName,
parameters: ManagedInstanceAdministrator,
options?: ManagedInstanceAdministratorsCreateOrUpdateOptionalParams
): Promise<
SimplePollerLike<
OperationState,
ManagedInstanceAdministratorsCreateOrUpdateResponse
>
>;
/**
* Creates or updates a managed instance administrator.
* @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 administratorName
* @param parameters The requested administrator parameters.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(
resourceGroupName: string,
managedInstanceName: string,
administratorName: AdministratorName,
parameters: ManagedInstanceAdministrator,
options?: ManagedInstanceAdministratorsCreateOrUpdateOptionalParams
): Promise;
/**
* Deletes a managed instance administrator.
* @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 administratorName
* @param options The options parameters.
*/
beginDelete(
resourceGroupName: string,
managedInstanceName: string,
administratorName: AdministratorName,
options?: ManagedInstanceAdministratorsDeleteOptionalParams
): Promise, void>>;
/**
* Deletes a managed instance administrator.
* @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 administratorName
* @param options The options parameters.
*/
beginDeleteAndWait(
resourceGroupName: string,
managedInstanceName: string,
administratorName: AdministratorName,
options?: ManagedInstanceAdministratorsDeleteOptionalParams
): Promise;
}