Interface MachineRunCommandsClient


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

    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<MachineRunCommandInner>,MachineRunCommandInner> beginCreateOrUpdate(String resourceGroupName, String machineName, String runCommandName, MachineRunCommandInner runCommandProperties)
      The operation to create or update 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.
      runCommandProperties - Parameters supplied to the Create Run Command.
      Returns:
      the SyncPoller for polling of 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<MachineRunCommandInner>,MachineRunCommandInner> beginCreateOrUpdate(String resourceGroupName, String machineName, String runCommandName, MachineRunCommandInner runCommandProperties, com.azure.core.util.Context context)
      The operation to create or update 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.
      runCommandProperties - Parameters supplied to the Create Run Command.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of 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.
    • createOrUpdate

      MachineRunCommandInner createOrUpdate(String resourceGroupName, String machineName, String runCommandName, MachineRunCommandInner runCommandProperties)
      The operation to create or update 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.
      runCommandProperties - Parameters supplied to the Create 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.
    • createOrUpdate

      MachineRunCommandInner createOrUpdate(String resourceGroupName, String machineName, String runCommandName, MachineRunCommandInner runCommandProperties, com.azure.core.util.Context context)
      The operation to create or update 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.
      runCommandProperties - Parameters supplied to the Create Run Command.
      context - The context to associate with this operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.
      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.
    • 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<MachineRunCommandInner> 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

      MachineRunCommandInner 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<MachineRunCommandInner> 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<MachineRunCommandInner> 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.