Search in sources :

Example 1 with NetworkProfile

use of com.microsoft.azure.management.compute.NetworkProfile in project azure-sdk-for-java by Azure.

the class VirtualMachinesImpl method wrapModel.

// Helper methods
@Override
protected VirtualMachineImpl wrapModel(String name) {
    VirtualMachineInner inner = new VirtualMachineInner();
    inner.withStorageProfile(new StorageProfile().withOsDisk(new OSDisk()).withDataDisks(new ArrayList<DataDisk>()));
    inner.withOsProfile(new OSProfile());
    inner.withHardwareProfile(new HardwareProfile());
    inner.withNetworkProfile(new NetworkProfile().withNetworkInterfaces(new ArrayList<NetworkInterfaceReferenceInner>()));
    return new VirtualMachineImpl(name, inner, this.manager(), this.storageManager, this.networkManager);
}
Also used : StorageProfile(com.microsoft.azure.management.compute.StorageProfile) OSDisk(com.microsoft.azure.management.compute.OSDisk) NetworkProfile(com.microsoft.azure.management.compute.NetworkProfile) OSProfile(com.microsoft.azure.management.compute.OSProfile) HardwareProfile(com.microsoft.azure.management.compute.HardwareProfile) ArrayList(java.util.ArrayList)

Aggregations

HardwareProfile (com.microsoft.azure.management.compute.HardwareProfile)1 NetworkProfile (com.microsoft.azure.management.compute.NetworkProfile)1 OSDisk (com.microsoft.azure.management.compute.OSDisk)1 OSProfile (com.microsoft.azure.management.compute.OSProfile)1 StorageProfile (com.microsoft.azure.management.compute.StorageProfile)1 ArrayList (java.util.ArrayList)1