/*
* 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 {
JobTargetGroup,
JobTargetGroupsListByAgentOptionalParams,
JobTargetGroupsGetOptionalParams,
JobTargetGroupsGetResponse,
JobTargetGroupsCreateOrUpdateOptionalParams,
JobTargetGroupsCreateOrUpdateResponse,
JobTargetGroupsDeleteOptionalParams
} from "../models";
///
/** Interface representing a JobTargetGroups. */
export interface JobTargetGroups {
/**
* Gets all target groups in an agent.
* @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?: JobTargetGroupsListByAgentOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a target 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 serverName The name of the server.
* @param jobAgentName The name of the job agent.
* @param targetGroupName The name of the target group.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
serverName: string,
jobAgentName: string,
targetGroupName: string,
options?: JobTargetGroupsGetOptionalParams
): Promise;
/**
* Creates or updates a target 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 serverName The name of the server.
* @param jobAgentName The name of the job agent.
* @param targetGroupName The name of the target group.
* @param parameters The requested state of the target group.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
serverName: string,
jobAgentName: string,
targetGroupName: string,
parameters: JobTargetGroup,
options?: JobTargetGroupsCreateOrUpdateOptionalParams
): Promise;
/**
* Deletes a target 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 serverName The name of the server.
* @param jobAgentName The name of the job agent.
* @param targetGroupName The name of the target group.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
serverName: string,
jobAgentName: string,
targetGroupName: string,
options?: JobTargetGroupsDeleteOptionalParams
): Promise;
}