osDisk.withManagedDisk(new ManagedDiskParameters()); withOSDiskVhdLocation(osDiskVhdContainerName, osDiskVhdName); osDisk.withManagedDisk(null); osDisk.withManagedDisk(null); if (osDisk.name() == null) { withOSDiskName(this.vmName + "-os-disk");
@Override public VirtualMachineImpl withOSDiskStorageAccountType(StorageAccountTypes accountType) { if (this.inner().storageProfile().osDisk().managedDisk() == null) { this.inner() .storageProfile() .osDisk() .withManagedDisk(new ManagedDiskParameters()); } this.inner() .storageProfile() .osDisk() .managedDisk() .withStorageAccountType(accountType); return this; }
osDisk.withManagedDisk(new ManagedDiskParameters()); withOSDiskVhdLocation(osDiskVhdContainerName, osDiskVhdName); osDisk.withManagedDisk(null); osDisk.withManagedDisk(null); if (osDisk.name() == null) { withOSDiskName(this.vmName + "-os-disk");
@Override public VirtualMachineImpl withOSDiskStorageAccountType(StorageAccountTypes accountType) { if (this.inner().storageProfile().osDisk().managedDisk() == null) { this.inner() .storageProfile() .osDisk() .withManagedDisk(new ManagedDiskParameters()); } this.inner() .storageProfile() .osDisk() .managedDisk() .withStorageAccountType(accountType); return this; }
@Override public VirtualMachineImpl withSpecializedOSUnmanagedDisk(String osDiskUrl, OperatingSystemTypes osType) { VirtualHardDisk osVhd = new VirtualHardDisk(); osVhd.withUri(osDiskUrl); this.inner().storageProfile().osDisk().withCreateOption(DiskCreateOptionTypes.ATTACH); this.inner().storageProfile().osDisk().withVhd(osVhd); this.inner().storageProfile().osDisk().withOsType(osType); this.inner().storageProfile().osDisk().withManagedDisk(null); return this; }
@Override public VirtualMachineImpl withSpecializedOSUnmanagedDisk(String osDiskUrl, OperatingSystemTypes osType) { VirtualHardDisk osVhd = new VirtualHardDisk(); osVhd.withUri(osDiskUrl); this.inner().storageProfile().osDisk().withCreateOption(DiskCreateOptionTypes.ATTACH); this.inner().storageProfile().osDisk().withVhd(osVhd); this.inner().storageProfile().osDisk().withOsType(osType); this.inner().storageProfile().osDisk().withManagedDisk(null); return this; }
@Override public VirtualMachineImpl withSpecializedOSDisk(Disk disk, OperatingSystemTypes osType) { ManagedDiskParameters diskParametersInner = new ManagedDiskParameters(); diskParametersInner.withId(disk.id()); this.inner().storageProfile().osDisk().withCreateOption(DiskCreateOptionTypes.ATTACH); this.inner().storageProfile().osDisk().withManagedDisk(diskParametersInner); this.inner().storageProfile().osDisk().withOsType(osType); this.inner().storageProfile().osDisk().withVhd(null); return this; }
@Override public VirtualMachineImpl withSpecializedOSDisk(Disk disk, OperatingSystemTypes osType) { ManagedDiskParameters diskParametersInner = new ManagedDiskParameters(); diskParametersInner.withId(disk.id()); this.inner().storageProfile().osDisk().withCreateOption(DiskCreateOptionTypes.ATTACH); this.inner().storageProfile().osDisk().withManagedDisk(diskParametersInner); this.inner().storageProfile().osDisk().withOsType(osType); this.inner().storageProfile().osDisk().withVhd(null); return this; }