Interface SchedulesClient


public interface SchedulesClient
An instance of this class provides access to all the operations defined in SchedulesClient.
  • Method Details

    • createOrUpdate

      ScheduleInner createOrUpdate(String resourceGroupName, String automationAccountName, String scheduleName, ScheduleCreateOrUpdateParameters parameters)
      Create a schedule.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      scheduleName - The schedule name.
      parameters - The parameters supplied to the create or update schedule operation.
      Returns:
      definition of the schedule.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<ScheduleInner> createOrUpdateWithResponse(String resourceGroupName, String automationAccountName, String scheduleName, ScheduleCreateOrUpdateParameters parameters, com.azure.core.util.Context context)
      Create a schedule.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      scheduleName - The schedule name.
      parameters - The parameters supplied to the create or update schedule operation.
      context - The context to associate with this operation.
      Returns:
      definition of the schedule along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      ScheduleInner update(String resourceGroupName, String automationAccountName, String scheduleName, ScheduleUpdateParameters parameters)
      Update the schedule identified by schedule name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      scheduleName - The schedule name.
      parameters - The parameters supplied to the update schedule operation.
      Returns:
      definition of the schedule.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponse

      com.azure.core.http.rest.Response<ScheduleInner> updateWithResponse(String resourceGroupName, String automationAccountName, String scheduleName, ScheduleUpdateParameters parameters, com.azure.core.util.Context context)
      Update the schedule identified by schedule name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      scheduleName - The schedule name.
      parameters - The parameters supplied to the update schedule operation.
      context - The context to associate with this operation.
      Returns:
      definition of the schedule along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      ScheduleInner get(String resourceGroupName, String automationAccountName, String scheduleName)
      Retrieve the schedule identified by schedule name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      scheduleName - The schedule name.
      Returns:
      definition of the schedule.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<ScheduleInner> getWithResponse(String resourceGroupName, String automationAccountName, String scheduleName, com.azure.core.util.Context context)
      Retrieve the schedule identified by schedule name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      scheduleName - The schedule name.
      context - The context to associate with this operation.
      Returns:
      definition of the schedule along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String automationAccountName, String scheduleName)
      Delete the schedule identified by schedule name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      scheduleName - The schedule name.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String automationAccountName, String scheduleName, com.azure.core.util.Context context)
      Delete the schedule identified by schedule name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      scheduleName - The schedule name.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByAutomationAccount

      com.azure.core.http.rest.PagedIterable<ScheduleInner> listByAutomationAccount(String resourceGroupName, String automationAccountName)
      Retrieve a list of schedules.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      Returns:
      the response model for the list schedule operation as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByAutomationAccount

      com.azure.core.http.rest.PagedIterable<ScheduleInner> listByAutomationAccount(String resourceGroupName, String automationAccountName, com.azure.core.util.Context context)
      Retrieve a list of schedules.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      context - The context to associate with this operation.
      Returns:
      the response model for the list schedule operation as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.