Interface MachineRunCommands


public interface MachineRunCommands
Resource collection API of MachineRunCommands.
  • Method Details

    • delete

      void delete(String resourceGroupName, String machineName, String runCommandName)
      The operation to delete a run command.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      machineName - The name of the hybrid machine.
      runCommandName - The name of the run command.
      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 machineName, String runCommandName, com.azure.core.util.Context context)
      The operation to delete a run command.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      machineName - The name of the hybrid machine.
      runCommandName - The name of the run command.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<MachineRunCommand> getWithResponse(String resourceGroupName, String machineName, String runCommandName, com.azure.core.util.Context context)
      The operation to get a run command.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      machineName - The name of the hybrid machine.
      runCommandName - The name of the run command.
      context - The context to associate with this operation.
      Returns:
      describes a Run Command 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

      MachineRunCommand get(String resourceGroupName, String machineName, String runCommandName)
      The operation to get a run command.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      machineName - The name of the hybrid machine.
      runCommandName - The name of the run command.
      Returns:
      describes a Run Command.
      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<MachineRunCommand> list(String resourceGroupName, String machineName)
      The operation to get all the run commands of a non-Azure machine.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      machineName - The name of the hybrid machine.
      Returns:
      describes the Run Commands List Result 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<MachineRunCommand> list(String resourceGroupName, String machineName, String expand, com.azure.core.util.Context context)
      The operation to get all the run commands of a non-Azure machine.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      machineName - The name of the hybrid machine.
      expand - The expand expression to apply on the operation.
      context - The context to associate with this operation.
      Returns:
      describes the Run Commands List Result 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.
    • getById

      The operation to get a run command.
      Parameters:
      id - the resource ID.
      Returns:
      describes a Run Command 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<MachineRunCommand> getByIdWithResponse(String id, com.azure.core.util.Context context)
      The operation to get a run command.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      describes a Run Command 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.
    • deleteById

      void deleteById(String id)
      The operation to delete a run command.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      The operation to delete a run command.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new MachineRunCommand resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new MachineRunCommand definition.