/*
* 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 {
ManagedInstance,
ManagedInstancesListOptionalParams,
ManagedInstancesListByInstancePoolOptionalParams,
ManagedInstancesListByResourceGroupOptionalParams,
OutboundEnvironmentEndpoint,
ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams,
TopQueries,
ManagedInstancesListByManagedInstanceOptionalParams,
ManagedInstancesGetOptionalParams,
ManagedInstancesGetResponse,
ManagedInstancesCreateOrUpdateOptionalParams,
ManagedInstancesCreateOrUpdateResponse,
ManagedInstancesDeleteOptionalParams,
ManagedInstanceUpdate,
ManagedInstancesUpdateOptionalParams,
ManagedInstancesUpdateResponse,
ManagedInstancesFailoverOptionalParams,
ManagedInstancesStartOptionalParams,
ManagedInstancesStopOptionalParams
} from "../models";
///
/** Interface representing a ManagedInstances. */
export interface ManagedInstances {
/**
* Gets a list of all managed instances in the subscription.
* @param options The options parameters.
*/
list(
options?: ManagedInstancesListOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a list of all managed instances in an instance pool.
* @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 instancePoolName The instance pool name.
* @param options The options parameters.
*/
listByInstancePool(
resourceGroupName: string,
instancePoolName: string,
options?: ManagedInstancesListByInstancePoolOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a list of managed instances in a resource group.
* @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 options The options parameters.
*/
listByResourceGroup(
resourceGroupName: string,
options?: ManagedInstancesListByResourceGroupOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets the collection of outbound network dependencies for the given managed instance.
* @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.
*/
listOutboundNetworkDependenciesByManagedInstance(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams
): PagedAsyncIterableIterator;
/**
* Get top resource consuming queries of a managed instance.
* @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.
*/
listByManagedInstance(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesListByManagedInstanceOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a managed instance.
* @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.
*/
get(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesGetOptionalParams
): Promise;
/**
* Creates or updates a managed instance.
* @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 parameters The requested managed instance resource state.
* @param options The options parameters.
*/
beginCreateOrUpdate(
resourceGroupName: string,
managedInstanceName: string,
parameters: ManagedInstance,
options?: ManagedInstancesCreateOrUpdateOptionalParams
): Promise<
SimplePollerLike<
OperationState,
ManagedInstancesCreateOrUpdateResponse
>
>;
/**
* Creates or updates a managed instance.
* @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 parameters The requested managed instance resource state.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(
resourceGroupName: string,
managedInstanceName: string,
parameters: ManagedInstance,
options?: ManagedInstancesCreateOrUpdateOptionalParams
): Promise;
/**
* Deletes a managed instance.
* @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.
*/
beginDelete(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesDeleteOptionalParams
): Promise, void>>;
/**
* Deletes a managed instance.
* @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.
*/
beginDeleteAndWait(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesDeleteOptionalParams
): Promise;
/**
* Updates a managed instance.
* @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 parameters The requested managed instance resource state.
* @param options The options parameters.
*/
beginUpdate(
resourceGroupName: string,
managedInstanceName: string,
parameters: ManagedInstanceUpdate,
options?: ManagedInstancesUpdateOptionalParams
): Promise<
SimplePollerLike<
OperationState,
ManagedInstancesUpdateResponse
>
>;
/**
* Updates a managed instance.
* @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 parameters The requested managed instance resource state.
* @param options The options parameters.
*/
beginUpdateAndWait(
resourceGroupName: string,
managedInstanceName: string,
parameters: ManagedInstanceUpdate,
options?: ManagedInstancesUpdateOptionalParams
): Promise;
/**
* Failovers a managed instance.
* @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 to failover.
* @param options The options parameters.
*/
beginFailover(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesFailoverOptionalParams
): Promise, void>>;
/**
* Failovers a managed instance.
* @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 to failover.
* @param options The options parameters.
*/
beginFailoverAndWait(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesFailoverOptionalParams
): Promise;
/**
* Starts the managed instance.
* @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.
*/
beginStart(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesStartOptionalParams
): Promise, void>>;
/**
* Starts the managed instance.
* @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.
*/
beginStartAndWait(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesStartOptionalParams
): Promise;
/**
* Stops the managed instance.
* @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.
*/
beginStop(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesStopOptionalParams
): Promise, void>>;
/**
* Stops the managed instance.
* @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.
*/
beginStopAndWait(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedInstancesStopOptionalParams
): Promise;
}