Interface VirtualMachineSchedulesClient


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

    • list

      com.azure.core.http.rest.PagedIterable<ScheduleInner> list(String resourceGroupName, String labName, String virtualMachineName)
      List schedules in a given virtual machine.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      Returns:
      the response of a list 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.
    • list

      com.azure.core.http.rest.PagedIterable<ScheduleInner> list(String resourceGroupName, String labName, String virtualMachineName, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context)
      List schedules in a given virtual machine.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      expand - Specify the $expand query. Example: 'properties($select=status)'.
      filter - The filter to apply to the operation. Example: '$filter=contains(name,'myName').
      top - The maximum number of resources to return from the operation. Example: '$top=10'.
      orderby - The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
      context - The context to associate with this operation.
      Returns:
      the response of a list 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.
    • getWithResponse

      com.azure.core.http.rest.Response<ScheduleInner> getWithResponse(String resourceGroupName, String labName, String virtualMachineName, String name, String expand, com.azure.core.util.Context context)
      Get schedule.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name of the schedule.
      expand - Specify the $expand query. Example: 'properties($select=status)'.
      context - The context to associate with this operation.
      Returns:
      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 labName, String virtualMachineName, String name)
      Get schedule.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name of the schedule.
      Returns:
      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 labName, String virtualMachineName, String name, ScheduleInner schedule, com.azure.core.util.Context context)
      Create or replace an existing schedule.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name of the schedule.
      schedule - A schedule.
      context - The context to associate with this operation.
      Returns:
      a 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.
    • createOrUpdate

      ScheduleInner createOrUpdate(String resourceGroupName, String labName, String virtualMachineName, String name, ScheduleInner schedule)
      Create or replace an existing schedule.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name of the schedule.
      schedule - A schedule.
      Returns:
      a 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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String labName, String virtualMachineName, String name, com.azure.core.util.Context context)
      Delete schedule.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name of the schedule.
      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.
    • delete

      void delete(String resourceGroupName, String labName, String virtualMachineName, String name)
      Delete schedule.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name 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 labName, String virtualMachineName, String name, ScheduleFragment schedule, com.azure.core.util.Context context)
      Allows modifying tags of schedules. All other properties will be ignored.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name of the schedule.
      schedule - A schedule.
      context - The context to associate with this operation.
      Returns:
      a 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 labName, String virtualMachineName, String name, ScheduleFragment schedule)
      Allows modifying tags of schedules. All other properties will be ignored.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name of the schedule.
      schedule - A schedule.
      Returns:
      a 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.
    • beginExecute

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginExecute(String resourceGroupName, String labName, String virtualMachineName, String name)
      Execute a schedule. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name of the schedule.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginExecute

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginExecute(String resourceGroupName, String labName, String virtualMachineName, String name, com.azure.core.util.Context context)
      Execute a schedule. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name of the schedule.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • execute

      void execute(String resourceGroupName, String labName, String virtualMachineName, String name)
      Execute a schedule. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name 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.
    • execute

      void execute(String resourceGroupName, String labName, String virtualMachineName, String name, com.azure.core.util.Context context)
      Execute a schedule. This operation can take a while to complete.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      virtualMachineName - The name of the virtual machine.
      name - The name of the schedule.
      context - The context to associate with this operation.
      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.