import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import { ComputeManagementClientContext } from "../computeManagementClientContext"; /** Class representing a VirtualMachineScaleSetVMs. */ export declare class VirtualMachineScaleSetVMs { private readonly client; /** * Create a VirtualMachineScaleSetVMs. * @param {ComputeManagementClientContext} client Reference to the service client. */ constructor(client: ComputeManagementClientContext); /** * Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ reimage(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. * This operation is only supported for managed disks. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ reimageAll(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and * releases the compute resources it uses. You are not billed for the compute resources of this * virtual machine once it is deallocated. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ deallocate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Updates a virtual machine of a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be create or * updated. * @param instanceId The instance ID of the virtual machine. * @param parameters Parameters supplied to the Update Virtual Machine Scale Sets VM operation. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: Models.VirtualMachineScaleSetVM, options?: msRest.RequestOptionsBase): Promise; /** * Deletes a virtual machine from a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Gets a virtual machine from a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param callback The callback */ get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param options The optional parameters * @param callback The callback */ get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; /** * Gets the status of a virtual machine from a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ getInstanceView(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param callback The callback */ getInstanceView(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param options The optional parameters * @param callback The callback */ getInstanceView(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; /** * Gets a list of all virtual machines in a VM scale sets. * @param resourceGroupName The name of the resource group. * @param virtualMachineScaleSetName The name of the VM scale set. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, virtualMachineScaleSetName: string, options?: Models.VirtualMachineScaleSetVMsListOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param virtualMachineScaleSetName The name of the VM scale set. * @param callback The callback */ list(resourceGroupName: string, virtualMachineScaleSetName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param virtualMachineScaleSetName The name of the VM scale set. * @param options The optional parameters * @param callback The callback */ list(resourceGroupName: string, virtualMachineScaleSetName: string, options: Models.VirtualMachineScaleSetVMsListOptionalParams, callback: msRest.ServiceCallback): void; /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and * you are getting charged for the resources. Instead, use deallocate to release resources and * avoid charges. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ powerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Restarts a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ restart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Starts a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ start(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Redeploys a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ redeploy(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Performs maintenance on a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ performMaintenance(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ beginReimage(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. * This operation is only supported for managed disks. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ beginReimageAll(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and * releases the compute resources it uses. You are not billed for the compute resources of this * virtual machine once it is deallocated. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ beginDeallocate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Updates a virtual machine of a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set where the extension should be create or * updated. * @param instanceId The instance ID of the virtual machine. * @param parameters Parameters supplied to the Update Virtual Machine Scale Sets VM operation. * @param [options] The optional parameters * @returns Promise */ beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: Models.VirtualMachineScaleSetVM, options?: msRest.RequestOptionsBase): Promise; /** * Deletes a virtual machine from a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and * you are getting charged for the resources. Instead, use deallocate to release resources and * avoid charges. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ beginPowerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Restarts a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ beginRestart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Starts a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ beginStart(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Redeploys a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ beginRedeploy(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Performs maintenance on a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. * @param [options] The optional parameters * @returns Promise */ beginPerformMaintenance(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * Gets a list of all virtual machines in a VM scale sets. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise */ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; } //# sourceMappingURL=virtualMachineScaleSetVMs.d.ts.map