/*
* 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 {
Job,
JobsListByAgentOptionalParams,
JobsGetOptionalParams,
JobsGetResponse,
JobsCreateOrUpdateOptionalParams,
JobsCreateOrUpdateResponse,
JobsDeleteOptionalParams
} from "../models";
///
/** Interface representing a Jobs. */
export interface Jobs {
/**
* Gets a list of jobs.
* @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 jobAgentName The name of the job agent.
* @param options The options parameters.
*/
listByAgent(
resourceGroupName: string,
serverName: string,
jobAgentName: string,
options?: JobsListByAgentOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a job.
* @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 jobAgentName The name of the job agent.
* @param jobName The name of the job to get.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
serverName: string,
jobAgentName: string,
jobName: string,
options?: JobsGetOptionalParams
): Promise;
/**
* Creates or updates a job.
* @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 jobAgentName The name of the job agent.
* @param jobName The name of the job to get.
* @param parameters The requested job state.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
serverName: string,
jobAgentName: string,
jobName: string,
parameters: Job,
options?: JobsCreateOrUpdateOptionalParams
): Promise;
/**
* Deletes a job.
* @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 jobAgentName The name of the job agent.
* @param jobName The name of the job to delete.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
serverName: string,
jobAgentName: string,
jobName: string,
options?: JobsDeleteOptionalParams
): Promise;
}