From 1ea35a06378948d10976cf2f7c029195162f33dd Mon Sep 17 00:00:00 2001 From: anuchan Date: Fri, 30 Sep 2016 14:22:59 -0700 Subject: [PATCH] renaming image() -> getImage() as it make REST call and removing unnecessary landDef --- .../compute/VirtualMachineExtensionImageVersion.java | 2 +- .../management/compute/VirtualMachineScaleSetSkuTypes.java | 3 --- .../VirtualMachineExtensionImageVersionImpl.java | 2 +- .../implementation/VirtualMachineExtensionImagesImpl.java | 2 +- .../compute/VirtualMachineExtensionImageOperationsTests.java | 2 +- .../compute/samples/ListVirtualMachineExtensionImages.java | 2 +- 6 files changed, 5 insertions(+), 8 deletions(-) diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineExtensionImageVersion.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineExtensionImageVersion.java index b08462dc22f4a..b99f98896b122 100644 --- a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineExtensionImageVersion.java +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineExtensionImageVersion.java @@ -33,5 +33,5 @@ public interface VirtualMachineExtensionImageVersion extends /** * @return virtual machine extension image this version represents */ - VirtualMachineExtensionImage image(); + VirtualMachineExtensionImage getImage(); } \ No newline at end of file diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineScaleSetSkuTypes.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineScaleSetSkuTypes.java index 548c9b59d9973..7928903a1b8e9 100644 --- a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineScaleSetSkuTypes.java +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineScaleSetSkuTypes.java @@ -1,11 +1,8 @@ package com.microsoft.azure.management.compute; -import com.microsoft.azure.management.apigeneration.LangDefinition; - /** * Scale set virtual machine sku types. */ -@LangDefinition public class VirtualMachineScaleSetSkuTypes { /** Static value Standard_A0 for VirtualMachineScaleSetSkuTypes. */ public static final VirtualMachineScaleSetSkuTypes STANDARD_A0 = new VirtualMachineScaleSetSkuTypes("Standard_A0", "Standard"); diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/implementation/VirtualMachineExtensionImageVersionImpl.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/implementation/VirtualMachineExtensionImageVersionImpl.java index f78b378e337dd..a81389864c487 100644 --- a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/implementation/VirtualMachineExtensionImageVersionImpl.java +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/implementation/VirtualMachineExtensionImageVersionImpl.java @@ -43,7 +43,7 @@ public VirtualMachineExtensionImageType type() { } @Override - public VirtualMachineExtensionImage image() { + public VirtualMachineExtensionImage getImage() { VirtualMachineExtensionImageInner inner = this.client.get(this.regionName(), this.type().publisher().name(), this.type().name(), diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/implementation/VirtualMachineExtensionImagesImpl.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/implementation/VirtualMachineExtensionImagesImpl.java index dea1c6b7b1d48..dc9c96034bacd 100644 --- a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/implementation/VirtualMachineExtensionImagesImpl.java +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/implementation/VirtualMachineExtensionImagesImpl.java @@ -50,7 +50,7 @@ public PagedList loadList(VirtualMachineExt new PagedListConverter() { @Override public VirtualMachineExtensionImage typeConvert(VirtualMachineExtensionImageVersion virtualMachineExtensionImageVersion) { - return virtualMachineExtensionImageVersion.image(); + return virtualMachineExtensionImageVersion.getImage(); } }; diff --git a/azure-mgmt-compute/src/test/java/com/microsoft/azure/management/compute/VirtualMachineExtensionImageOperationsTests.java b/azure-mgmt-compute/src/test/java/com/microsoft/azure/management/compute/VirtualMachineExtensionImageOperationsTests.java index 6ab088b329569..2cc24ed62e96d 100644 --- a/azure-mgmt-compute/src/test/java/com/microsoft/azure/management/compute/VirtualMachineExtensionImageOperationsTests.java +++ b/azure-mgmt-compute/src/test/java/com/microsoft/azure/management/compute/VirtualMachineExtensionImageOperationsTests.java @@ -104,7 +104,7 @@ public void canGetExtensionTypeVersionAndImage() throws Exception { // Fetch the Azure docker extension image // - VirtualMachineExtensionImage dockerExtensionImage = extensionImageFirstVersion.image(); + VirtualMachineExtensionImage dockerExtensionImage = extensionImageFirstVersion.getImage(); Assert.assertTrue(dockerExtensionImage.regionName().equalsIgnoreCase(Region.US_EAST.toString())); Assert.assertTrue(dockerExtensionImage.publisherName().equalsIgnoreCase(dockerExtensionPublisherName)); diff --git a/azure-samples/src/main/java/com/microsoft/azure/management/compute/samples/ListVirtualMachineExtensionImages.java b/azure-samples/src/main/java/com/microsoft/azure/management/compute/samples/ListVirtualMachineExtensionImages.java index 9a748cdb7016f..e4d8f80ab79af 100644 --- a/azure-samples/src/main/java/com/microsoft/azure/management/compute/samples/ListVirtualMachineExtensionImages.java +++ b/azure-samples/src/main/java/com/microsoft/azure/management/compute/samples/ListVirtualMachineExtensionImages.java @@ -72,7 +72,7 @@ public static void main(String[] args) { for (VirtualMachineExtensionImageType imageType : chosenPublisher.extensionTypes().list()) { for (VirtualMachineExtensionImageVersion version: imageType.versions().list()) { - VirtualMachineExtensionImage image = version.image(); + VirtualMachineExtensionImage image = version.getImage(); System.out.println("Image - " + chosenPublisher.name() + "/" + image.typeName() + "/" + image.versionName());