/*
* 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 {
RuntimeScriptActionDetail,
ScriptExecutionHistoryListByClusterOptionalParams,
ScriptExecutionHistoryPromoteOptionalParams
} from "../models";
///
/** Interface representing a ScriptExecutionHistory. */
export interface ScriptExecutionHistory {
/**
* Lists all scripts' execution history for the specified cluster.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param options The options parameters.
*/
listByCluster(
resourceGroupName: string,
clusterName: string,
options?: ScriptExecutionHistoryListByClusterOptionalParams
): PagedAsyncIterableIterator;
/**
* Promotes the specified ad-hoc script execution to a persisted script.
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster.
* @param scriptExecutionId The script execution Id
* @param options The options parameters.
*/
promote(
resourceGroupName: string,
clusterName: string,
scriptExecutionId: string,
options?: ScriptExecutionHistoryPromoteOptionalParams
): Promise;
}