VirtualMachine.Update 接口

定义

The template for an update operation, containing all the settings that can be modified.

public interface Update extends Appliable<VirtualMachine>,Resource.UpdateWithTags<Update>,VirtualMachine.UpdateStages.WithUnmanagedDataDisk,VirtualMachine.UpdateStages.WithManagedDataDisk,VirtualMachine.UpdateStages.WithSecondaryNetworkInterface,VirtualMachine.UpdateStages.WithExtension,VirtualMachine.UpdateStages.WithBootDiagnostics,VirtualMachine.UpdateStages.WithManagedServiceIdentity

继承成员

Appliable<T>.apply() Appliable<T>.applyAsync() Appliable<T>.applyAsync(final ServiceCallback<T> callback) VirtualMachine.UpdateStages.WithExtension.defineNewExtension(String name) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.defineUnmanagedDataDisk(String name) Indexable.key() VirtualMachine.UpdateStages.WithExtension.updateExtension(String name) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.updateUnmanagedDataDisk(String name) VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics() VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics(Creatable<StorageAccount> creatable) VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics(StorageAccount storageAccount) VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics(String storageAccountBlobEndpointUri) VirtualMachine.UpdateStages.WithManagedDataDisk.withExistingDataDisk(Disk disk) VirtualMachine.UpdateStages.WithManagedDataDisk.withExistingDataDisk(Disk disk, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithManagedDataDisk.withExistingDataDisk(Disk disk, int newSizeInGB, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithSecondaryNetworkInterface.withExistingSecondaryNetworkInterface(NetworkInterface networkInterface) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withExistingUnmanagedDataDisk(String storageAccountName, String containerName, String vhdName) VirtualMachine.UpdateStages.WithManagedServiceIdentity.withManagedServiceIdentity() VirtualMachine.UpdateStages.WithManagedServiceIdentity.withManagedServiceIdentity(int tokenPort) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(Creatable<Disk> creatable) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(Creatable<Disk> creatable, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(int sizeInGB) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType, StorageAccountTypes storageAccountType) VirtualMachine.UpdateStages.WithSecondaryNetworkInterface.withNewSecondaryNetworkInterface(Creatable<NetworkInterface> creatable) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withNewUnmanagedDataDisk(Integer sizeInGB) VirtualMachine.UpdateStages.WithBootDiagnostics.withoutBootDiagnostics() VirtualMachine.UpdateStages.WithManagedDataDisk.withoutDataDisk(int lun) VirtualMachine.UpdateStages.WithExtension.withoutExtension(String name) VirtualMachine.UpdateStages.WithSecondaryNetworkInterface.withoutSecondaryNetworkInterface(String name) Resource.UpdateWithTags<T>.withoutTag(String key) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withoutUnmanagedDataDisk(String name) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withoutUnmanagedDataDisk(int lun) Resource.UpdateWithTags<T>.withTag(String key, String value) Resource.UpdateWithTags<T>.withTags(Map<String, String> tags)

方法

withDataDiskDefaultCachingType(CachingTypes cachingType)

Specifies the default caching type for the managed data disks.

withDataDiskDefaultStorageAccountType(StorageAccountTypes storageAccountType)

Specifies a storage account type.

withOSDiskCaching(CachingTypes cachingType)

Specifies the caching type for the OS disk.

withOSDiskEncryptionSettings(DiskEncryptionSettings settings)

Specifies the encryption settings for the OS Disk.

withOSDiskSizeInGB(int size)

Specifies the size of the OS disk in GB.

Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API.

withOSDiskSizeInGB(Integer size)

Specifies the size of the OS disk in GB.

Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API.

withSize(String sizeName)

Specifies a new size for the virtual machine.

withSize(VirtualMachineSizeTypes size)

Specifies a new size for the virtual machine.

适用于