Share via


VirtualMachineRunCommandsClient Interface

public interface VirtualMachineRunCommandsClient

An instance of this class provides access to all the operations defined in VirtualMachineRunCommandsClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginCreateOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand)

The operation to create or update the run command.

abstract SyncPoller<PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginCreateOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand, Context context)

The operation to create or update the run command.

abstract PollerFlux<PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginCreateOrUpdateAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand)

The operation to create or update the run command.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String vmName, String runCommandName)

The operation to delete the run command.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String vmName, String runCommandName, Context context)

The operation to delete the run command.

abstract PollerFlux<PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String vmName, String runCommandName)

The operation to delete the run command.

abstract SyncPoller<PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand)

The operation to update the run command.

abstract SyncPoller<PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand, Context context)

The operation to update the run command.

abstract PollerFlux<PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginUpdateAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand)

The operation to update the run command.

abstract VirtualMachineRunCommandInner createOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand)

The operation to create or update the run command.

abstract VirtualMachineRunCommandInner createOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand, Context context)

The operation to create or update the run command.

abstract Mono<VirtualMachineRunCommandInner> createOrUpdateAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand)

The operation to create or update the run command.

abstract Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand)

The operation to create or update the run command.

abstract void delete(String resourceGroupName, String vmName, String runCommandName)

The operation to delete the run command.

abstract void delete(String resourceGroupName, String vmName, String runCommandName, Context context)

The operation to delete the run command.

abstract Mono<Void> deleteAsync(String resourceGroupName, String vmName, String runCommandName)

The operation to delete the run command.

abstract Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmName, String runCommandName)

The operation to delete the run command.

abstract RunCommandDocumentInner get(String location, String commandId)

Gets specific run command for a subscription in a location.

abstract Mono<RunCommandDocumentInner> getAsync(String location, String commandId)

Gets specific run command for a subscription in a location.

abstract VirtualMachineRunCommandInner getByVirtualMachine(String resourceGroupName, String vmName, String runCommandName)

The operation to get the run command.

abstract Mono<VirtualMachineRunCommandInner> getByVirtualMachineAsync(String resourceGroupName, String vmName, String runCommandName)

The operation to get the run command.

abstract Response<VirtualMachineRunCommandInner> getByVirtualMachineWithResponse(String resourceGroupName, String vmName, String runCommandName, String expand, Context context)

The operation to get the run command.

abstract Mono<Response<VirtualMachineRunCommandInner>> getByVirtualMachineWithResponseAsync(String resourceGroupName, String vmName, String runCommandName, String expand)

The operation to get the run command.

abstract Response<RunCommandDocumentInner> getWithResponse(String location, String commandId, Context context)

Gets specific run command for a subscription in a location.

abstract Mono<Response<RunCommandDocumentInner>> getWithResponseAsync(String location, String commandId)

Gets specific run command for a subscription in a location.

abstract PagedIterable<RunCommandDocumentBaseInner> list(String location)

Lists all available run commands for a subscription in a location.

abstract PagedIterable<RunCommandDocumentBaseInner> list(String location, Context context)

Lists all available run commands for a subscription in a location.

abstract PagedFlux<RunCommandDocumentBaseInner> listAsync(String location)

Lists all available run commands for a subscription in a location.

abstract PagedIterable<VirtualMachineRunCommandInner> listByVirtualMachine(String resourceGroupName, String vmName)

The operation to get all run commands of a Virtual Machine.

abstract PagedIterable<VirtualMachineRunCommandInner> listByVirtualMachine(String resourceGroupName, String vmName, String expand, Context context)

The operation to get all run commands of a Virtual Machine.

abstract PagedFlux<VirtualMachineRunCommandInner> listByVirtualMachineAsync(String resourceGroupName, String vmName)

The operation to get all run commands of a Virtual Machine.

abstract PagedFlux<VirtualMachineRunCommandInner> listByVirtualMachineAsync(String resourceGroupName, String vmName, String expand)

The operation to get all run commands of a Virtual Machine.

abstract VirtualMachineRunCommandInner update(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand)

The operation to update the run command.

abstract VirtualMachineRunCommandInner update(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand, Context context)

The operation to update the run command.

abstract Mono<VirtualMachineRunCommandInner> updateAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand)

The operation to update the run command.

abstract Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand)

The operation to update the run command.

Method Details

beginCreateOrUpdate

public abstract SyncPoller<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 SyncPoller<T,U> for polling of describes a Virtual Machine run command.

beginCreateOrUpdate

public abstract SyncPoller<PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginCreateOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand, 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 SyncPoller<T,U> for polling of describes a Virtual Machine run command.

beginCreateOrUpdateAsync

public abstract PollerFlux<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 PollerFlux<T,U> for polling of describes a Virtual Machine run command.

beginDelete

public abstract SyncPoller<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 SyncPoller<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String vmName, String runCommandName, 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 SyncPoller<T,U> for polling of long-running operation.

beginDeleteAsync

public abstract PollerFlux<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 PollerFlux<T,U> for polling of long-running operation.

beginUpdate

public abstract SyncPoller<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 SyncPoller<T,U> for polling of describes a Virtual Machine run command.

beginUpdate

public abstract SyncPoller<PollResult<VirtualMachineRunCommandInner>,VirtualMachineRunCommandInner> beginUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand, 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 SyncPoller<T,U> for polling of describes a Virtual Machine run command.

beginUpdateAsync

public abstract PollerFlux<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 PollerFlux<T,U> for polling of describes a Virtual Machine run command.

createOrUpdate

public abstract 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.

createOrUpdate

public abstract VirtualMachineRunCommandInner createOrUpdate(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandInner runCommand, 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.

createOrUpdateAsync

public abstract 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.

createOrUpdateWithResponseAsync

public abstract Mono<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 Response<T> on successful completion of Mono.

delete

public abstract void delete(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.

delete

public abstract void delete(String resourceGroupName, String vmName, String runCommandName, 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.

deleteAsync

public abstract Mono<Void> deleteAsync(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:

A Mono that completes when a successful response is received.

deleteWithResponseAsync

public abstract Mono<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 Response<T> on successful completion of Mono.

get

public abstract RunCommandDocumentInner get(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.

getAsync

public abstract Mono<RunCommandDocumentInner> getAsync(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 on successful completion of Mono.

getByVirtualMachine

public abstract 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.

getByVirtualMachineAsync

public abstract 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.

getByVirtualMachineWithResponse

public abstract Response<VirtualMachineRunCommandInner> getByVirtualMachineWithResponse(String resourceGroupName, String vmName, String runCommandName, String expand, 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<T>.

getByVirtualMachineWithResponseAsync

public abstract Mono<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 Response<T> on successful completion of Mono.

getWithResponse

public abstract Response<RunCommandDocumentInner> getWithResponse(String location, String commandId, 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<T>.

getWithResponseAsync

public abstract Mono<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 Response<T> on successful completion of Mono.

list

public abstract PagedIterable<RunCommandDocumentBaseInner> list(String location)

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

list

public abstract PagedIterable<RunCommandDocumentBaseInner> list(String location, 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<T>.

listAsync

public abstract PagedFlux<RunCommandDocumentBaseInner> listAsync(String location)

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

listByVirtualMachine

public abstract 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<T>.

listByVirtualMachine

public abstract PagedIterable<VirtualMachineRunCommandInner> listByVirtualMachine(String resourceGroupName, String vmName, String expand, 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<T>.

listByVirtualMachineAsync

public abstract 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<T>.

listByVirtualMachineAsync

public abstract 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<T>.

update

public abstract 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.

update

public abstract VirtualMachineRunCommandInner update(String resourceGroupName, String vmName, String runCommandName, VirtualMachineRunCommandUpdate runCommand, 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.

updateAsync

public abstract 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.

updateWithResponseAsync

public abstract Mono<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 Response<T> on successful completion of Mono.

Applies to