/* * 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 { PollerLike, PollOperationState } from "@azure/core-lro"; import { Schedule, SchedulesListOptionalParams, SchedulesListApplicableOptionalParams, SchedulesGetOptionalParams, SchedulesGetResponse, SchedulesCreateOrUpdateOptionalParams, SchedulesCreateOrUpdateResponse, SchedulesDeleteOptionalParams, ScheduleFragment, SchedulesUpdateOptionalParams, SchedulesUpdateResponse, SchedulesExecuteOptionalParams } from "../models"; /// /** Interface representing a Schedules. */ export interface Schedules { /** * List schedules in a given lab. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The options parameters. */ list( resourceGroupName: string, labName: string, options?: SchedulesListOptionalParams ): PagedAsyncIterableIterator; /** * Lists all applicable schedules * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the schedule. * @param options The options parameters. */ listApplicable( resourceGroupName: string, labName: string, name: string, options?: SchedulesListApplicableOptionalParams ): PagedAsyncIterableIterator; /** * Get schedule. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the schedule. * @param options The options parameters. */ get( resourceGroupName: string, labName: string, name: string, options?: SchedulesGetOptionalParams ): Promise; /** * Create or replace an existing schedule. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the schedule. * @param schedule A schedule. * @param options The options parameters. */ createOrUpdate( resourceGroupName: string, labName: string, name: string, schedule: Schedule, options?: SchedulesCreateOrUpdateOptionalParams ): Promise; /** * Delete schedule. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the schedule. * @param options The options parameters. */ delete( resourceGroupName: string, labName: string, name: string, options?: SchedulesDeleteOptionalParams ): Promise; /** * Allows modifying tags of schedules. All other properties will be ignored. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the schedule. * @param schedule A schedule. * @param options The options parameters. */ update( resourceGroupName: string, labName: string, name: string, schedule: ScheduleFragment, options?: SchedulesUpdateOptionalParams ): Promise; /** * Execute a schedule. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the schedule. * @param options The options parameters. */ beginExecute( resourceGroupName: string, labName: string, name: string, options?: SchedulesExecuteOptionalParams ): Promise, void>>; /** * Execute a schedule. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the schedule. * @param options The options parameters. */ beginExecuteAndWait( resourceGroupName: string, labName: string, name: string, options?: SchedulesExecuteOptionalParams ): Promise; }