Interface VirtualMachineRunCommandsClient
public interface VirtualMachineRunCommandsClient
An instance of this class provides access to all the operations defined in VirtualMachineRunCommandsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.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.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.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.beginDelete(String resourceGroupName, String vmName, String runCommandName) The operation to delete the run command.beginDelete(String resourceGroupName, String vmName, String runCommandName, com.azure.core.util.Context context) The operation to delete the run command.beginDeleteAsync(String resourceGroupName, String vmName, String runCommandName) The operation to delete the run command.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.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.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.createOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand) The operation to create or update the run command.createOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand, com.azure.core.util.Context context) The operation to create or update the run command.createOrUpdateAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand) The operation to create or update the run command.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.voidThe operation to delete the run command.voiddelete(String resourceGroupName, String vmName, String runCommandName, com.azure.core.util.Context context) The operation to delete the run command.deleteAsync(String resourceGroupName, String vmName, String runCommandName) The operation to delete the run command.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmName, String runCommandName) The operation to delete the run command.Gets specific run command for a subscription in a location.Gets specific run command for a subscription in a location.getByVirtualMachine(String resourceGroupName, String vmName, String runCommandName) The operation to get the run command.getByVirtualMachineAsync(String resourceGroupName, String vmName, String runCommandName) The operation to get the run command.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.Mono<com.azure.core.http.rest.Response<VirtualMachineRunCommandInner>> getByVirtualMachineWithResponseAsync(String resourceGroupName, String vmName, String runCommandName, String expand) The operation to get the run command.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.Mono<com.azure.core.http.rest.Response<RunCommandDocumentInner>> getWithResponseAsync(String location, String commandId) Gets specific run command for a subscription in a location.com.azure.core.http.rest.PagedIterable<RunCommandDocumentBaseInner> Lists all available run commands for a subscription in a location.com.azure.core.http.rest.PagedIterable<RunCommandDocumentBaseInner> Lists all available run commands for a subscription in a location.com.azure.core.http.rest.PagedFlux<RunCommandDocumentBaseInner> Lists all available run commands for a subscription in a location.com.azure.core.http.rest.PagedIterable<VirtualMachineRunCommandInner> listByVirtualMachine(String resourceGroupName, String vmName) The operation to get all run commands of a Virtual Machine.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.com.azure.core.http.rest.PagedFlux<VirtualMachineRunCommandInner> listByVirtualMachineAsync(String resourceGroupName, String vmName) The operation to get all run commands of a Virtual Machine.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.update(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand) The operation to update the run command.update(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand, com.azure.core.util.Context context) The operation to update the run command.updateAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand) The operation to update the run command.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.
-
Method Details
-
listAsync
Lists all available run commands for a subscription in a location.- Parameters:
location- The name of Azure region.- Returns:
- the List Virtual Machine 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.
-
list
Lists all available run commands for a subscription in a location.- Parameters:
location- The name of Azure region.- Returns:
- the List Virtual Machine 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.
-
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 name of Azure region.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.ApiErrorException- 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 name of Azure region.commandId- Specifies a commandId of predefined built-in script. Command IDs available for Linux are listed at https://aka.ms/RunCommandManagedLinux#available-commands, Windows at https://aka.ms/RunCommandManagedWindows#available-commands.- Returns:
- specific run command for a subscription in a location along with
Responseon successful completion ofMono. - 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.
-
getAsync
Gets specific run command for a subscription in a location.- Parameters:
location- The name of Azure region.commandId- Specifies a commandId of predefined built-in script. Command IDs available for Linux are listed at https://aka.ms/RunCommandManagedLinux#available-commands, Windows at https://aka.ms/RunCommandManagedWindows#available-commands.- Returns:
- specific run command for a subscription in a location 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.
-
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 name of Azure region.commandId- Specifies a commandId of predefined built-in script. Command IDs available for Linux are listed at https://aka.ms/RunCommandManagedLinux#available-commands, Windows at https://aka.ms/RunCommandManagedWindows#available-commands.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.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets specific run command for a subscription in a location.- Parameters:
location- The name of Azure region.commandId- Specifies a commandId of predefined built-in script. Command IDs available for Linux are listed at https://aka.ms/RunCommandManagedLinux#available-commands, Windows at https://aka.ms/RunCommandManagedWindows#available-commands.- Returns:
- specific run command for a subscription in a location.
- 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. The name is case insensitive.vmName- The name of the VirtualMachine.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. The name is case insensitive.vmName- The name of the VirtualMachine.- 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. The name is case insensitive.vmName- The name of the VirtualMachine.- 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. The name is case insensitive.vmName- The name of the VirtualMachine.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.
-
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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.expand- The expand expression to apply on the operation.- Returns:
- describes a Virtual Machine run command along with
Responseon successful completion ofMono. - 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.- 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.- 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.
-
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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.runCommand- Parameters supplied to the Create Virtual Machine RunCommand operation.- Returns:
- describes a Virtual Machine run command along with
Responseon successful completion ofMono. - 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.runCommand- Parameters supplied to the Create Virtual Machine RunCommand operation.- Returns:
- the
PollerFluxfor 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.runCommand- Parameters supplied to the Create Virtual Machine RunCommand operation.- Returns:
- the
SyncPollerfor 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.runCommand- Parameters supplied to the Create Virtual Machine RunCommand operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.runCommand- Parameters supplied to the Update Virtual Machine RunCommand operation.- Returns:
- describes a Virtual Machine run command along with
Responseon successful completion ofMono. - 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.runCommand- Parameters supplied to the Update Virtual Machine RunCommand operation.- Returns:
- the
PollerFluxfor 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.runCommand- Parameters supplied to the Update Virtual Machine RunCommand operation.- Returns:
- the
SyncPollerfor 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.runCommand- Parameters supplied to the Update Virtual Machine RunCommand operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.- Returns:
- the
Responseon successful completion ofMono. - 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.- Returns:
- the
PollerFluxfor 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.- Returns:
- the
SyncPollerfor 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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
The operation to delete the run command.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.- Returns:
- A
Monothat 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
The operation to delete the run command.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.- 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. The name is case insensitive.vmName- The name of the VirtualMachine.runCommandName- The name of the VirtualMachineRunCommand.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.
-