Interface VirtualMachineRunCommandsClient


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

    • listAsync

      com.azure.core.http.rest.PagedFlux<RunCommandDocumentBaseInner> listAsync(String location)
      Lists all available run commands for a subscription in a location.
      Parameters:
      location - The location upon which run commands is queried.
      Returns:
      the List Virtual Machine operation response as paginated response with PagedFlux.
      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<RunCommandDocumentBaseInner> list(String location)
      Lists all available run commands for a subscription in a location.
      Parameters:
      location - The location upon which run commands is queried.
      Returns:
      the List Virtual Machine operation response 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<RunCommandDocumentBaseInner> list(String location, com.azure.core.util.Context context)
      Lists all available run commands for a subscription in a location.
      Parameters:
      location - The location upon which run commands is queried.
      context - The context to associate with this operation.
      Returns:
      the List Virtual Machine operation response 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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<RunCommandDocumentInner>> getWithResponseAsync(String location, String commandId)
      Gets specific run command for a subscription in a location.
      Parameters:
      location - The location upon which run commands is queried.
      commandId - The command id.
      Returns:
      specific run command for a subscription in a location along with Response on successful completion of Mono.
      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.
    • getAsync

      Mono<RunCommandDocumentInner> getAsync(String location, String commandId)
      Gets specific run command for a subscription in a location.
      Parameters:
      location - The location upon which run commands is queried.
      commandId - The command id.
      Returns:
      specific run command for a subscription in a location on successful completion of Mono.
      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<RunCommandDocumentInner> getWithResponse(String location, String commandId, com.azure.core.util.Context context)
      Gets specific run command for a subscription in a location.
      Parameters:
      location - The location upon which run commands is queried.
      commandId - The command id.
      context - The context to associate with this operation.
      Returns:
      specific run command for a subscription in a location 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

      RunCommandDocumentInner get(String location, String commandId)
      Gets specific run command for a subscription in a location.
      Parameters:
      location - The location upon which run commands is queried.
      commandId - The command id.
      Returns:
      specific run command for a subscription in a location.
      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.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand)
      The operation to create or update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be created or updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation.
      Returns:
      describes a Virtual Machine run command along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginCreateOrUpdateAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand)
      The operation to create or update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be created or updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation.
      Returns:
      the PollerFlux for polling of describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginCreateOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand)
      The operation to create or update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be created or updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation.
      Returns:
      the SyncPoller for polling of describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginCreateOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand, com.azure.core.util.Context context)
      The operation to create or update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be created or updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAsync

      Mono<VirtualMachineRunCommandInner> createOrUpdateAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand)
      The operation to create or update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be created or updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation.
      Returns:
      describes a Virtual Machine run command on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      VirtualMachineRunCommandInner createOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand)
      The operation to create or update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be created or updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation.
      Returns:
      describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      VirtualMachineRunCommandInner createOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand, com.azure.core.util.Context context)
      The operation to create or update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be created or updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Create Virtual Machine RunCommand operation.
      context - The context to associate with this operation.
      Returns:
      describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand)
      The operation to update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation.
      Returns:
      describes a Virtual Machine run command along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginUpdateAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand)
      The operation to update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation.
      Returns:
      the PollerFlux for polling of describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand)
      The operation to update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation.
      Returns:
      the SyncPoller for polling of describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand, com.azure.core.util.Context context)
      The operation to update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateAsync

      Mono<VirtualMachineRunCommandInner> updateAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand)
      The operation to update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation.
      Returns:
      describes a Virtual Machine run command on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      VirtualMachineRunCommandInner update(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand)
      The operation to update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation.
      Returns:
      describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      VirtualMachineRunCommandInner update(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand, com.azure.core.util.Context context)
      The operation to update the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be updated.
      runCommandName - The name of the virtual machine run command.
      runCommand - Parameters supplied to the Update Virtual Machine RunCommand operation.
      context - The context to associate with this operation.
      Returns:
      describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmName, String runCommandName)
      The operation to delete the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be deleted.
      runCommandName - The name of the virtual machine run command.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String vmName, String runCommandName)
      The operation to delete the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be deleted.
      runCommandName - The name of the virtual machine run command.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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 vmName, String runCommandName)
      The operation to delete the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be deleted.
      runCommandName - The name of the virtual machine run command.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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 vmName, String runCommandName, com.azure.core.util.Context context)
      The operation to delete the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be deleted.
      runCommandName - The name of the virtual machine 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.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String vmName, String runCommandName)
      The operation to delete the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be deleted.
      runCommandName - The name of the virtual machine run command.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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 vmName, String runCommandName)
      The operation to delete the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be deleted.
      runCommandName - The name of the virtual machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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 vmName, String runCommandName, com.azure.core.util.Context context)
      The operation to delete the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine where the run command should be deleted.
      runCommandName - The name of the virtual machine run command.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByVirtualMachineWithResponseAsync

      Mono<com.azure.core.http.rest.Response<VirtualMachineRunCommandInner>> getByVirtualMachineWithResponseAsync(String resourceGroupName, String vmName, String runCommandName, String expand)
      The operation to get the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine containing the run command.
      runCommandName - The name of the virtual machine run command.
      expand - The expand expression to apply on the operation.
      Returns:
      describes a Virtual Machine run command along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByVirtualMachineAsync

      Mono<VirtualMachineRunCommandInner> getByVirtualMachineAsync(String resourceGroupName, String vmName, String runCommandName)
      The operation to get the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine containing the run command.
      runCommandName - The name of the virtual machine run command.
      Returns:
      describes a Virtual Machine run command on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByVirtualMachineWithResponse

      com.azure.core.http.rest.Response<VirtualMachineRunCommandInner> getByVirtualMachineWithResponse(String resourceGroupName, String vmName, String runCommandName, String expand, com.azure.core.util.Context context)
      The operation to get the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine containing the run command.
      runCommandName - The name of the virtual machine run command.
      expand - The expand expression to apply on the operation.
      context - The context to associate with this operation.
      Returns:
      describes a Virtual Machine run command along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByVirtualMachine

      VirtualMachineRunCommandInner getByVirtualMachine(String resourceGroupName, String vmName, String runCommandName)
      The operation to get the run command.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine containing the run command.
      runCommandName - The name of the virtual machine run command.
      Returns:
      describes a Virtual Machine run command.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByVirtualMachineAsync

      com.azure.core.http.rest.PagedFlux<VirtualMachineRunCommandInner> listByVirtualMachineAsync(String resourceGroupName, String vmName, String expand)
      The operation to get all run commands of a Virtual Machine.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine containing the run command.
      expand - The expand expression to apply on the operation.
      Returns:
      the List run command operation response as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByVirtualMachineAsync

      com.azure.core.http.rest.PagedFlux<VirtualMachineRunCommandInner> listByVirtualMachineAsync(String resourceGroupName, String vmName)
      The operation to get all run commands of a Virtual Machine.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine containing the run command.
      Returns:
      the List run command operation response as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByVirtualMachine

      com.azure.core.http.rest.PagedIterable<VirtualMachineRunCommandInner> listByVirtualMachine(String resourceGroupName, String vmName)
      The operation to get all run commands of a Virtual Machine.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine containing the run command.
      Returns:
      the List run command operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByVirtualMachine

      com.azure.core.http.rest.PagedIterable<VirtualMachineRunCommandInner> listByVirtualMachine(String resourceGroupName, String vmName, String expand, com.azure.core.util.Context context)
      The operation to get all run commands of a Virtual Machine.
      Parameters:
      resourceGroupName - The name of the resource group.
      vmName - The name of the virtual machine containing the run command.
      expand - The expand expression to apply on the operation.
      context - The context to associate with this operation.
      Returns:
      the List run command operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.