@Override public String sku() { return imageReference.sku(); }
@Override public String sku() { return imageReference.sku(); }
public AzureOSHost(ImageReference imageReference) { this.publisher = imageReference.publisher(); this.offer = imageReference.offer(); this.sku = imageReference.sku(); this.version = imageReference.version(); }
@Override public boolean isOSBasedOnPlatformImage() { ImageReference imageReference = this.inner().storageProfile().imageReference(); if (imageReference != null && imageReference.publisher() != null && imageReference.sku() != null && imageReference.offer() != null && imageReference.version() != null) { return true; } return false; }
@Override public boolean isOSBasedOnPlatformImage() { ImageReference imageReference = this.inner().storageProfile().imageReference(); if (imageReference != null && imageReference.publisher() != null && imageReference.sku() != null && imageReference.offer() != null && imageReference.version() != null) { return true; } return false; }
/** * Checks whether the OS disk is based on an platform image (image in PIR). * * @param storageProfile the storage profile * @return true if the OS disk is configured to be based on platform image. */ private boolean isOSDiskFromPlatformImage(StorageProfile storageProfile) { ImageReference imageReference = storageProfile.imageReference(); return isOSDiskFromImage(storageProfile.osDisk()) && imageReference != null && imageReference.publisher() != null && imageReference.offer() != null && imageReference.sku() != null && imageReference.version() != null; }
/** * Checks whether the OS disk is based on an platform image (image in PIR). * * @param storageProfile the storage profile * @return true if the OS disk is configured to be based on platform image. */ private boolean isOSDiskFromPlatformImage(VirtualMachineScaleSetStorageProfile storageProfile) { ImageReference imageReference = storageProfile.imageReference(); return isOSDiskFromImage(storageProfile.osDisk()) && imageReference != null && imageReference.publisher() != null && imageReference.offer() != null && imageReference.sku() != null && imageReference.version() != null; }
/** * Checks whether the OS disk is based on an platform image (image in PIR). * * @param storageProfile the storage profile * @return true if the OS disk is configured to be based on platform image. */ private boolean isOSDiskFromPlatformImage(StorageProfile storageProfile) { ImageReference imageReference = storageProfile.imageReference(); return isOSDiskFromImage(storageProfile.osDisk()) && imageReference != null && imageReference.publisher() != null && imageReference.offer() != null && imageReference.sku() != null && imageReference.version() != null; }
/** * Checks whether the OS disk is based on an platform image (image in PIR). * * @param storageProfile the storage profile * @return true if the OS disk is configured to be based on platform image. */ private boolean isOSDiskFromPlatformImage(VirtualMachineScaleSetStorageProfile storageProfile) { ImageReference imageReference = storageProfile.imageReference(); return isOSDiskFromImage(storageProfile.osDisk()) && imageReference != null && imageReference.publisher() != null && imageReference.offer() != null && imageReference.sku() != null && imageReference.version() != null; }
@Override public VirtualMachineImage getOSPlatformImage() { if (this.isOSBasedOnPlatformImage()) { ImageReference imageReference = this.platformImageReference(); return this.computeManager.virtualMachineImages().getImage(this.region(), imageReference.publisher(), imageReference.offer(), imageReference.sku(), imageReference.version()); } return null; }
@Override public VirtualMachineImage getOSPlatformImage() { if (this.isOSBasedOnPlatformImage()) { ImageReference imageReference = this.platformImageReference(); return this.computeManager.virtualMachineImages().getImage(this.region(), imageReference.publisher(), imageReference.offer(), imageReference.sku(), imageReference.version()); } return null; }