From 81b3825a8d7253acf100f216e7fb165cd2f5971c Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Thu, 19 Dec 2024 17:30:26 +0800 Subject: [PATCH 1/8] Get ci analyze exception result --- .../azure-resourcemanager-compute/pom.xml | 1 - .../compute/ComputeManager.java | 84 +++++++++++++++---- 2 files changed, 70 insertions(+), 15 deletions(-) diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml b/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml index 6bfc75b11660e..c796ffdac7c0c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml @@ -56,7 +56,6 @@ --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED - - diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java index 14d40e6bf1596..7f4dc4afcaa43 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java @@ -151,7 +151,11 @@ private ComputeManager(HttpPipeline httpPipeline, AzureProfile profile) { authorizationManager = AuthorizationManager.authenticate(httpPipeline, profile); } - /** @return the availability set resource management API entry point */ + /** + * Gets the availability set resource management API entry point. + * + * @return the availability set resource management API entry point + */ public AvailabilitySets availabilitySets() { if (availabilitySets == null) { availabilitySets = new AvailabilitySetsImpl(this); @@ -159,7 +163,11 @@ public AvailabilitySets availabilitySets() { return availabilitySets; } - /** @return the virtual machine resource management API entry point */ + /** + * Gets the virtual machine resource management API entry point. + * + * @return the virtual machine resource management API entry point + */ public VirtualMachines virtualMachines() { if (virtualMachines == null) { virtualMachines = new VirtualMachinesImpl(this, storageManager, networkManager, authorizationManager); @@ -167,7 +175,11 @@ public VirtualMachines virtualMachines() { return virtualMachines; } - /** @return the virtual machine image resource management API entry point */ + /** + * Gest the virtual machine image resource management API entry point. + * + * @return the virtual machine image resource management API entry point + */ public VirtualMachineImages virtualMachineImages() { if (virtualMachineImages == null) { virtualMachineImages = new VirtualMachineImagesImpl( @@ -178,7 +190,11 @@ public VirtualMachineImages virtualMachineImages() { return virtualMachineImages; } - /** @return the virtual machine extension image resource management API entry point */ + /** + * Gets the virtual machine extension image resource management API entry point. + * + * @return the virtual machine extension image resource management API entry point + */ public VirtualMachineExtensionImages virtualMachineExtensionImages() { if (virtualMachineExtensionImages == null) { virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl( @@ -188,7 +204,11 @@ public VirtualMachineExtensionImages virtualMachineExtensionImages() { return virtualMachineExtensionImages; } - /** @return the virtual machine scale set resource management API entry point */ + /** + * Gets the virtual machine scale set resource management API entry point. + * + * @return the virtual machine scale set resource management API entry point + */ public VirtualMachineScaleSets virtualMachineScaleSets() { if (virtualMachineScaleSets == null) { virtualMachineScaleSets @@ -197,7 +217,11 @@ public VirtualMachineScaleSets virtualMachineScaleSets() { return virtualMachineScaleSets; } - /** @return the compute resource usage management API entry point */ + /** + * Gets the compute resource usage management API entry point. + * + * @return the compute resource usage management API entry point + */ public ComputeUsages usages() { if (computeUsages == null) { computeUsages = new ComputeUsagesImpl(this.serviceClient()); @@ -205,7 +229,11 @@ public ComputeUsages usages() { return computeUsages; } - /** @return the virtual machine custom image management API entry point */ + /** + * Gets the virtual machine custom image management API entry point. + * + * @return the virtual machine custom image management API entry point + */ public VirtualMachineCustomImages virtualMachineCustomImages() { if (virtualMachineCustomImages == null) { virtualMachineCustomImages = new VirtualMachineCustomImagesImpl(this); @@ -213,7 +241,11 @@ public VirtualMachineCustomImages virtualMachineCustomImages() { return virtualMachineCustomImages; } - /** @return the managed disk management API entry point */ + /** + * Gets the managed disk management API entry point. + * + * @return the managed disk management API entry point + */ public Disks disks() { if (disks == null) { disks = new DisksImpl(this); @@ -221,7 +253,11 @@ public Disks disks() { return disks; } - /** @return the managed snapshot management API entry point */ + /** + * Gets the managed snapshot management API entry point. + * + * @return the managed snapshot management API entry point + */ public Snapshots snapshots() { if (snapshots == null) { snapshots = new SnapshotsImpl(this); @@ -229,7 +265,11 @@ public Snapshots snapshots() { return snapshots; } - /** @return the compute service SKU management API entry point */ + /** + * Gets the compute service SKU management API entry point. + * + * @return the compute service SKU management API entry point + */ public ComputeSkus computeSkus() { if (computeSkus == null) { computeSkus = new ComputeSkusImpl(this); @@ -237,7 +277,11 @@ public ComputeSkus computeSkus() { return computeSkus; } - /** @return the compute service gallery management entry point */ + /** + * Gets the compute service gallery management entry point. + * + * @return the compute service gallery management entry point + */ public Galleries galleries() { if (galleries == null) { galleries = new GalleriesImpl(this); @@ -245,7 +289,11 @@ public Galleries galleries() { return galleries; } - /** @return the compute service gallery image management entry point */ + /** + * Gets the compute service gallery image management entry point. + * + * @return the compute service gallery image management entry point + */ public GalleryImages galleryImages() { if (galleryImages == null) { galleryImages = new GalleryImagesImpl(this); @@ -253,7 +301,11 @@ public GalleryImages galleryImages() { return galleryImages; } - /** @return the compute service gallery image version management entry point */ + /** + * Gets the compute service gallery image version management entry point. + * + * @return the compute service gallery image version management entry point + */ public GalleryImageVersions galleryImageVersions() { if (galleryImageVersions == null) { galleryImageVersions = new GalleryImageVersionsImpl(this); @@ -261,7 +313,11 @@ public GalleryImageVersions galleryImageVersions() { return galleryImageVersions; } - /** @return the disk encryption set management entry point */ + /** + * Gets the disk encryption set management entry point. + * + * @return the disk encryption set management entry point + */ public DiskEncryptionSets diskEncryptionSets() { if (diskEncryptionSets == null) { diskEncryptionSets = new DiskEncryptionSetsImpl(this); From e7873a64bd0d45d01bea5156819bc66523cf7c1e Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Fri, 20 Dec 2024 11:03:02 +0800 Subject: [PATCH 2/8] Fix ci analyze exception --- .../compute/ComputeManager.java | 18 +- .../EncryptionExtensionIdentifier.java | 12 +- .../implementation/EncryptionSettings.java | 18 +- .../VirtualMachineExtensionsImpl.java | 18 +- .../compute/models/AvailabilitySet.java | 36 ++- .../compute/models/ComputeResourceType.java | 15 +- .../compute/models/ComputeSku.java | 60 ++++- .../compute/models/ComputeSkuName.java | 15 +- .../compute/models/ComputeSkuTier.java | 15 +- .../compute/models/ComputeUsage.java | 24 +- .../compute/models/ComputeUsageUnit.java | 14 +- .../compute/models/CreationSource.java | 14 +- .../resourcemanager/compute/models/Disk.java | 80 +++++- .../compute/models/DiskEncryptionSet.java | 25 +- .../compute/models/DiskSkuTypes.java | 12 +- .../models/DiskVolumeEncryptionMonitor.java | 33 ++- .../compute/models/EncryptionStatus.java | 15 +- .../compute/models/Gallery.java | 18 +- .../compute/models/GalleryImage.java | 120 +++++++-- .../compute/models/GalleryImageVersion.java | 69 ++++- .../models/KnownLinuxVirtualMachineImage.java | 24 +- .../KnownWindowsVirtualMachineImage.java | 24 +- .../compute/models/PowerState.java | 15 +- .../compute/models/Snapshot.java | 36 ++- .../compute/models/SnapshotSkuType.java | 12 +- .../compute/models/VirtualMachine.java | 245 +++++++++++++++--- .../models/VirtualMachineCustomImage.java | 30 ++- .../models/VirtualMachineDataDisk.java | 44 +++- .../models/VirtualMachineDiskOptions.java | 34 ++- .../models/VirtualMachineEncryption.java | 12 +- ...VirtualMachineEncryptionConfiguration.java | 60 ++++- .../models/VirtualMachineExtension.java | 9 +- .../models/VirtualMachineExtensionBase.java | 45 +++- .../models/VirtualMachineExtensionImage.java | 62 ++++- .../VirtualMachineExtensionImageType.java | 24 +- .../VirtualMachineExtensionImageVersion.java | 30 ++- .../models/VirtualMachineExtensionImages.java | 6 +- .../compute/models/VirtualMachineImage.java | 60 ++++- .../compute/models/VirtualMachineImages.java | 6 +- .../compute/models/VirtualMachineOffer.java | 18 +- .../models/VirtualMachinePublisher.java | 18 +- .../models/VirtualMachineScaleSet.java | 203 ++++++++++++--- .../VirtualMachineScaleSetExtension.java | 39 ++- .../models/VirtualMachineScaleSetSku.java | 18 +- .../VirtualMachineScaleSetSkuTypes.java | 6 +- .../models/VirtualMachineScaleSetVM.java | 228 +++++++++++++--- .../VirtualMachineScaleSetVMExpandType.java | 11 + ...ualMachineScaleSetVMInstanceExtension.java | 6 +- .../compute/models/VirtualMachineSize.java | 30 ++- .../compute/models/VirtualMachineSku.java | 24 +- .../VirtualMachineUnmanagedDataDisk.java | 24 +- .../compute/models/VirtualMachines.java | 6 +- 52 files changed, 1719 insertions(+), 321 deletions(-) diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java index 7f4dc4afcaa43..eec7c3162a4db 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java @@ -70,17 +70,29 @@ public final class ComputeManager extends Manager { private GalleryImageVersions galleryImageVersions; private DiskEncryptionSets diskEncryptionSets; - /** @return the storage manager */ + /** + * Gets the storage manager. + * + * @return the storage manager + */ public StorageManager storageManager() { return storageManager; } - /** @return the network manager */ + /** + * Gets the network manager. + * + * @return the network manager + */ public NetworkManager networkManager() { return networkManager; } - /** @return the authorization manager */ + /** + * Gets the authorization manager. + * + * @return the authorization manager + */ public AuthorizationManager authorizationManager() { return authorizationManager; } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/EncryptionExtensionIdentifier.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/EncryptionExtensionIdentifier.java index 4935d268f560e..317f16ac6847e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/EncryptionExtensionIdentifier.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/EncryptionExtensionIdentifier.java @@ -19,12 +19,20 @@ class EncryptionExtensionIdentifier { private static final String LINUX_ENCRYPTION_TYPE_NAME = "AzureDiskEncryptionForLinux"; private static final String WINDOWS_ENCRYPTION_TYPE_NAME = "AzureDiskEncryption"; - /** @return encryption extension publisher name */ + /** + * Gets encryption extension publisher name. + * + * @return encryption extension publisher name + */ static String publisherName() { return ENCRYPTION_EXTENSION_PUBLISHER; } - /** @return OS specific encryption extension type */ + /** + * Gets OS specific encryption extension type. + * + * @return OS specific encryption extension type + */ static String typeName(OperatingSystemTypes osType) { if (osType == OperatingSystemTypes.LINUX) { return LINUX_ENCRYPTION_TYPE_NAME; diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/EncryptionSettings.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/EncryptionSettings.java index ca2025a23790e..6bbe4811bbfd6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/EncryptionSettings.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/EncryptionSettings.java @@ -16,13 +16,25 @@ /** Internal base type exposing settings to enable and disable disk encryption extension. */ abstract class EncryptionSettings { - /** @return encryption specific settings to be set on virtual machine storage profile */ + /** + * Gets encryption specific settings to be set on virtual machine storage profile. + * + * @return encryption specific settings to be set on virtual machine storage profile + */ abstract DiskEncryptionSettings storageProfileEncryptionSettings(); - /** @return encryption extension public settings */ + /** + * Gets encryption extension public settings. + * + * @return encryption extension public settings + */ abstract HashMap extensionPublicSettings(); - /** @return encryption extension protected settings */ + /** + * Gets encryption extension protected settings. + * + * @return encryption extension protected settings + */ abstract HashMap extensionProtectedSettings(); /** diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionsImpl.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionsImpl.java index 0ae5b359213ee..8fe803726cd20 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionsImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionsImpl.java @@ -34,19 +34,31 @@ class VirtualMachineExtensionsImpl extends this.cacheCollection(); } - /** @return the extension as a map indexed by name. */ + /** + * Gets the extension as a map indexed by name. + * + * @return the extension as a map indexed by name. + */ public Map asMap() { return this.asMapAsync().block(); } - /** @return an observable emits extensions in this collection as a map indexed by name. */ + /** + * Gets an observable emits extensions in this collection as a map indexed by name. + * + * @return an observable emits extensions in this collection as a map indexed by name. + */ public Mono> asMapAsync() { return listAsync().flatMapMany(Flux::fromIterable) .collect(Collectors.toMap(extension -> extension.name(), extension -> extension)) .map(map -> Collections.unmodifiableMap(map)); } - /** @return a Mono emits extensions in this collection */ + /** + * Gets a Mono emits extensions in this collection. + * + * @return a Mono emits extensions in this collection + */ public Mono> listAsync() { Flux extensions = Flux.fromIterable(this.collection().values()); // Resolve reference getExtensions diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AvailabilitySet.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AvailabilitySet.java index c4a8149d24bcf..b7698ab9100f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AvailabilitySet.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AvailabilitySet.java @@ -20,16 +20,32 @@ public interface AvailabilitySet extends GroupableResource, Refreshable, Updatable { - /** @return the update domain count of this availability set */ + /** + * Gets the update domain count of this availability set. + * + * @return the update domain count of this availability set + */ int updateDomainCount(); - /** @return the fault domain count of this availability set */ + /** + * Gets the fault domain count of this availability set. + * + * @return the fault domain count of this availability set + */ int faultDomainCount(); - /** @return the availability set SKU */ + /** + * Gets the availability set SKU. + * + * @return the availability set SKU + */ AvailabilitySetSkuTypes sku(); - /** @return the resource IDs of the virtual machines in the availability set */ + /** + * Gets the resource IDs of the virtual machines in the availability set. + * + * @return the resource IDs of the virtual machines in the availability set + */ Set virtualMachineIds(); /** @@ -40,10 +56,18 @@ public interface AvailabilitySet extends GroupableResource statuses(); - /** @return the virtual machine sizes supported in the availability set */ + /** + * Gets the virtual machine sizes supported in the availability set. + * + * @return the virtual machine sizes supported in the availability set + */ PagedIterable listVirtualMachineSizes(); // Fluent interfaces diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeResourceType.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeResourceType.java index 5b1262d0812de..da91fec2b9021 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeResourceType.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeResourceType.java @@ -20,6 +20,15 @@ public class ComputeResourceType extends ExpandableStringEnum values() { return values(ComputeResourceType.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSku.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSku.java index 9da0be40e6651..9406864178dbb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSku.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSku.java @@ -15,13 +15,25 @@ /** Type representing sku for an Azure compute resource. */ @Fluent public interface ComputeSku extends HasInnerModel { - /** @return the sku name */ + /** + * Gets the SKU name. + * + * @return the SKU name + */ ComputeSkuName name(); - /** @return the sku tier */ + /** + * Gets the SKU tier. + * + * @return the SKU tier + */ ComputeSkuTier tier(); - /** @return the compute resource type that the sku describes */ + /** + * Gets the compute resource type that the SKU describes. + * + * @return the compute resource type that the SKU describes + */ ComputeResourceType resourceType(); /** @@ -54,24 +66,52 @@ public interface ComputeSku extends HasInnerModel { */ AvailabilitySetSkuTypes availabilitySetSkuType(); - /** @return the regions that the sku is available */ + /** + * Gets the regions that the SKU is available. + * + * @return the regions that the sku is available + */ List regions(); - /** @return the availability zones supported for this sku, index by region */ + /** + * Gets the availability zones supported for this SKU. + * + * @return the availability zones supported for this SKU, index by region + */ Map> zones(); - /** @return the scaling information of the sku */ + /** + * Gets the scaling information of the SKU. + * + * @return the scaling information of the SKU + */ ResourceSkuCapacity capacity(); - /** @return the api versions that this sku supports */ + /** + * Gets the api versions that this SKU supports. + * + * @return the api versions that this SKU supports + */ List apiVersions(); - /** @return the metadata for querying the sku pricing information */ + /** + * Gets the metadata for querying the SKU pricing information. + * + * @return the metadata for querying the SKU pricing information + */ List costs(); - /** @return the capabilities of the sku */ + /** + * Gets the capabilities of the SKU. + * + * @return the capabilities of the SKU + */ List capabilities(); - /** @return the restrictions because of which SKU cannot be used */ + /** + * Gets the restrictions because of which SKU cannot be used. + * + * @return the restrictions because of which SKU cannot be used + */ List restrictions(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSkuName.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSkuName.java index 21ff7dc84e580..373baca550548 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSkuName.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSkuName.java @@ -376,6 +376,15 @@ public class ComputeSkuName extends ExpandableStringEnum { /** Static value Standard_DS3 for ComputeSkuName. */ public static final ComputeSkuName STANDARD_DS3 = fromString("Standard_DS3"); + /** + * Creates a new instance of ComputeSkuName value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ComputeSkuName() { + } + /** * Creates or finds a ComputeSkuName from its string representation. * @@ -386,7 +395,11 @@ public static ComputeSkuName fromString(String name) { return fromString(name, ComputeSkuName.class); } - /** @return known ComputeSkuName values */ + /** + * Gets known ComputeSkuName values. + * + * @return known ComputeSkuName values + */ public static Collection values() { return values(ComputeSkuName.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSkuTier.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSkuTier.java index cbb3a89501f2c..cc0f568c0ee90 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSkuTier.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeSkuTier.java @@ -18,6 +18,15 @@ public class ComputeSkuTier extends ExpandableStringEnum { /** Static value Premium for ComputeSkuTier. */ public static final ComputeSkuTier PREMIUM = fromString("Premium"); + /** + * Creates a new instance of ComputeSkuTier value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ComputeSkuTier() { + } + /** * Creates or finds a ComputeSkuTier from its string representation. * @@ -28,7 +37,11 @@ public static ComputeSkuTier fromString(String name) { return fromString(name, ComputeSkuTier.class); } - /** @return known ComputeSkuTier values */ + /** + * Gets known ComputeSkuTier values. + * + * @return known ComputeSkuTier values + */ public static Collection values() { return values(ComputeSkuTier.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeUsage.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeUsage.java index ad08a1bb632e0..145e11dbcc756 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeUsage.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeUsage.java @@ -9,15 +9,31 @@ /** An immutable client-side representation of an Azure compute resource usage info object. */ @Fluent public interface ComputeUsage extends HasInnerModel { - /** @return the unit of measurement */ + /** + * Gets the unit of measurement. + * + * @return the unit of measurement + */ ComputeUsageUnit unit(); - /** @return the current count of the allocated resources in the subscription */ + /** + * Gets the current count of the allocated resources in the subscription. + * + * @return the current count of the allocated resources in the subscription + */ int currentValue(); - /** @return the maximum count of the resources that can be allocated in the subscription */ + /** + * Gets the maximum count of the resources that can be allocated in the subscription. + * + * @return the maximum count of the resources that can be allocated in the subscription + */ long limit(); - /** @return the name of the type of usage */ + /** + * Gets the name of the type of usage. + * + * @return the name of the type of usage + */ UsageName name(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeUsageUnit.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeUsageUnit.java index 481f9c9db3368..bbc79f869325f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeUsageUnit.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ComputeUsageUnit.java @@ -26,6 +26,15 @@ public final class ComputeUsageUnit extends ExpandableStringEnum values() { return values(ComputeUsageUnit.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CreationSource.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CreationSource.java index 8a84838b95ea0..e1b068664b7f5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CreationSource.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CreationSource.java @@ -18,7 +18,11 @@ public CreationSource(CreationData creationData) { this.creationData = creationData; } - /** @return type of the source from which disk or snapshot is created */ + /** + * Gets type of the source from which disk or snapshot is created. + * + * @return type of the source from which disk or snapshot is created + */ public CreationSourceType type() { DiskCreateOption createOption = this.creationData.createOption(); if (createOption == DiskCreateOption.FROM_IMAGE) { @@ -52,7 +56,11 @@ public CreationSourceType type() { return CreationSourceType.UNKNOWN; } - /** @return ID of the source */ + /** + * Gets ID of the resource. + * + * @return ID of the source + */ public String sourceId() { if (this.type() == CreationSourceType.FROM_OS_DISK_IMAGE || this.type() == CreationSourceType.FROM_DATA_DISK_IMAGE) { @@ -79,6 +87,8 @@ public String sourceId() { } /** + * Gets the LUN value of the data disk image if this disk or snapshot is created from a data disk image. + * * @return the LUN value of the data disk image if this disk or snapshot is created from a data disk image, -1 * otherwise */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java index b213b75e51b64..af9f9d559f38e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java @@ -21,40 +21,82 @@ /** An immutable client-side representation of an Azure managed disk. */ @Fluent public interface Disk extends GroupableResource, Refreshable, Updatable { - /** @return the disk SKU */ + /** + * Gets the disk SKU. + * + * @return the disk SKU + */ DiskSkuTypes sku(); - /** @return the disk creation method */ + /** + * Gets the disk creation method. + * + * @return the disk creation method + */ DiskCreateOption creationMethod(); - /** @return true if the disk is attached to a virtual machine, otherwise false */ + /** + * Whether the disk is attached to a virtual machine. + * + * @return true if the disk is attached to a virtual machine, otherwise false + */ boolean isAttachedToVirtualMachine(); /** + * Gets the resource ID of the virtual machine this disk is attached to. + * * @return the resource ID of the virtual machine this disk is attached to, or null if the disk is in a detached * state */ String virtualMachineId(); - /** @return disk size in GB */ + /** + * Gets disk size in GB. + * + * @return disk size in GB + */ int sizeInGB(); - /** @return disk size in byte */ + /** + * Gets disk size in byte. + * + * @return disk size in byte + */ long sizeInByte(); - /** @return the type of the operating system on the disk */ + /** + * Gets the type of the operating system on the disk. + * + * @return the type of the operating system on the disk + */ OperatingSystemTypes osType(); - /** @return the details of the source from which the disk is created */ + /** + * Gets the details of the source from which the disk is created. + * + * @return the details of the source from which the disk is created + */ CreationSource source(); - /** @return the availability zones assigned to the disk */ + /** + * Gets the availability zones assigned to the disk. + * + * @return the availability zones assigned to the disk + */ Set availabilityZones(); - /** @return the disk encryption settings */ + /** + * Gets the disk encryption settings. + * + * @return the disk encryption settings + */ EncryptionSettingsCollection encryptionSettings(); - /** @return the disk encryption */ + /** + * Gets the disk encryption. + * + * @return the disk encryption + */ Encryption encryption(); /** @@ -83,13 +125,25 @@ public interface Disk extends GroupableResource, Refr */ Mono revokeAccessAsync(); - /** @return whether the OS on a disk supports hibernation. */ + /** + * Whether the OS on a disk supports hibernation. + * + * @return whether the OS on a disk supports hibernation. + */ boolean isHibernationSupported(); - /** @return logical sector size in bytes for Premium SSD v2 and Ultra disks. */ + /** + * Gets logical sector size in bytes for Premium SSD v2 and Ultra disks. + * + * @return logical sector size in bytes for Premium SSD v2 and Ultra disks. + */ Integer logicalSectorSizeInBytes(); - /** @return the hypervisor generation. */ + /** + * Gets the hypervisor generation. + * + * @return the hypervisor generation. + */ HyperVGeneration hyperVGeneration(); /** diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSet.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSet.java index f0b2701ed1e44..89fdae68ddfef 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSet.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSet.java @@ -18,13 +18,25 @@ @Fluent public interface DiskEncryptionSet extends GroupableResource, Updatable, Refreshable { - /** @return resource id of the Azure key vault containing the key or secret */ + /** + * Gets resource id of the Azure key vault containing the key or secret. + * + * @return resource id of the Azure key vault containing the key or secret + */ String keyVaultId(); - /** @return id representing the encryption key in KeyVault */ + /** + * Gets id representing the encryption key in KeyVault. + * + * @return id representing the encryption key in KeyVault + */ String encryptionKeyId(); - /** @return the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID + /** + * Gets the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID + * assigned to the disk encryption set. + * + * @return the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID * assigned to the disk encryption set. */ String systemAssignedManagedServiceIdentityPrincipalId(); @@ -32,11 +44,16 @@ public interface DiskEncryptionSet extends GroupableResource valuesCollection = VALUES_BY_NAME.values(); return valuesCollection.toArray(new DiskSkuTypes[valuesCollection.size()]); @@ -83,7 +87,11 @@ public static DiskSkuTypes fromDiskSku(DiskSku diskSku) { return fromStorageAccountType(diskSku.name()); } - /** @return the account type associated with the SKU. */ + /** + * Gets the account type associated with the SKU. + * + * @return the account type associated with the SKU. + */ public DiskStorageAccountTypes accountType() { return this.value; } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskVolumeEncryptionMonitor.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskVolumeEncryptionMonitor.java index 35839dcf45599..e5102ff6bb182 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskVolumeEncryptionMonitor.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskVolumeEncryptionMonitor.java @@ -9,22 +9,45 @@ /** Type that can be used to monitor encryption enable and disable status of a virtual machine. */ public interface DiskVolumeEncryptionMonitor extends Refreshable { - /** @return operating system type of the virtual machine */ + /** + * Gets operating system type of the virtual machine. + * + * @return operating system type of the virtual machine + */ OperatingSystemTypes osType(); - /** @return the encryption progress message */ + /** + * Gets the encryption progress message. + * + * @return the encryption progress message + */ String progressMessage(); - /** @return operating system disk encryption status */ + /** + * Gets operating system disk encryption status. + * + * @return operating system disk encryption status + */ EncryptionStatus osDiskStatus(); - /** @return data disks encryption status */ + /** + * Gets data disks encryption status. + * + * @return data disks encryption status + */ EncryptionStatus dataDiskStatus(); - /** @return disks encryption status from instance view level. */ + /** + * Gets disks encryption status from instance view level. + * + * @return disks encryption status from instance view level. + */ Map diskInstanceViewEncryptionStatuses(); /** + * Gets a representation of the deferred computation of this call returning the encryption status once the + * refresh is done. + * * @return a representation of the deferred computation of this call returning the encryption status once the * refresh is done */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/EncryptionStatus.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/EncryptionStatus.java index bf7731b92592a..f4abfb0fca418 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/EncryptionStatus.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/EncryptionStatus.java @@ -27,6 +27,15 @@ public final class EncryptionStatus extends ExpandableStringEnum values() { return values(EncryptionStatus.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Gallery.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Gallery.java index 930b983f00117..d5440ec1d3420 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Gallery.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Gallery.java @@ -23,13 +23,25 @@ @Fluent public interface Gallery extends HasInnerModel, Resource, GroupableResource, HasResourceGroup, Refreshable, Updatable, HasManager { - /** @return description for the gallery resource. */ + /** + * Gets description for the gallery resource. + * + * @return description for the gallery resource. + */ String description(); - /** @return the unique name of the gallery resource. */ + /** + * Gets the unique name of the gallery resource. + * + * @return the unique name of the gallery resource. + */ String uniqueName(); - /** @return the provisioning state of the gallery resource. */ + /** + * Gets the provisioning state of the gallery resource. + * + * @return the provisioning state of the gallery resource. + */ String provisioningState(); /** diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImage.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImage.java index 294bb810e5fe3..cd3e98d2b5a3e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImage.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImage.java @@ -28,64 +28,144 @@ @Fluent public interface GalleryImage extends HasInnerModel, Indexable, Refreshable, Updatable, HasManager { - /** @return the description of the image. */ + /** + * Gets the description of the image. + * + * @return the description of the image. + */ String description(); - /** @return the disk types not supported by the image. */ + /** + * Gets the disk types not supported by the image. + * + * @return the disk types not supported by the image. + */ List unsupportedDiskTypes(); - /** @return a description of features not supported by the image. */ + /** + * Gets a description of features not supported by the image. + * + * @return a description of features not supported by the image. + */ Disallowed disallowed(); - /** @return the date indicating image's end of life. */ + /** + * Gets the date indicating image's end of life. + * + * @return the date indicating image's end of life. + */ OffsetDateTime endOfLifeDate(); - /** @return the image eula. */ + /** + * Gets the image eula. + * + * @return the image eula. + */ String eula(); - /** @return the ARM id of the image. */ + /** + * Gets the ARM id of the image. + * + * @return the ARM id of the image. + */ String id(); - /** @return an identifier describing publisher, offer and sku of the image. */ + /** + * Gets an identifier describing publisher, offer and sku of the image. + * + * @return an identifier describing publisher, offer and sku of the image. + */ GalleryImageIdentifier identifier(); - /** @return the location of the image. */ + /** + * Gets the location of the image. + * + * @return the location of the image. + */ String location(); - /** @return the image name. */ + /** + * Gets the image name. + * + * @return the image name. + */ String name(); - /** @return the OS state of the image. */ + /** + * Gets the OS state of the image. + * + * @return the OS state of the image. + */ OperatingSystemStateTypes osState(); - /** @return the image OS type. */ + /** + * Gets the image OS type. + * + * @return the image OS type. + */ OperatingSystemTypes osType(); - /** @return the uri to image privacy statement. */ + /** + * Gets the URI to image privacy statement. + * + * @return the URI to image privacy statement. + */ String privacyStatementUri(); - /** @return the provisioningState of image resource. */ + /** + * Gets the provisioningState of image resource. + * + * @return the provisioningState of image resource. + */ String provisioningState(); - /** @return the purchasePlan of the image. */ + /** + * Gets the purchasePlan of the image. + * + * @return the purchasePlan of the image. + */ ImagePurchasePlan purchasePlan(); - /** @return the value describing recommended configuration for a virtual machine based on this image. */ + /** + * Gets the value describing recommended configuration for a virtual machine based on this image. + * + * @return the value describing recommended configuration for a virtual machine based on this image. + */ RecommendedMachineConfiguration recommendedVirtualMachineConfiguration(); - /** @return the uri to the image release note. */ + /** + * Gets the URI to the image release note. + * + * @return the URI to the image release note. + */ String releaseNoteUri(); - /** @return the hypervisor generation. */ + /** + * Gets the hypervisor generation. + * + * @return the hypervisor generation. + */ HyperVGeneration hyperVGeneration(); - /** @return the security type, whether trusted launch or confidential VM. */ + /** + * Gets the security type, whether trusted launch or confidential VM. + * + * @return the security type, whether trusted launch or confidential VM. + */ SecurityTypes securityType(); - /** @return the tags associated with the image. */ + /** + * Gets the tags associated with the image. + * + * @return the tags associated with the image. + */ Map tags(); - /** @return the type value. */ + /** + * Gets the type value. + * + * @return the type value. + */ String type(); /** diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersion.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersion.java index 705283ec2d4e7..d96bbc30bafee 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersion.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersion.java @@ -22,43 +22,90 @@ @Fluent public interface GalleryImageVersion extends HasInnerModel, Indexable, Refreshable, Updatable, HasManager { - /** @return the ARM id of the image version. */ + /** + * Gets the ARM id of the iage version. + * + * @return the ARM id of the image version. + */ String id(); - /** @return the default location of the image version. */ + /** + * Gets the default location of the image version. + * + * @return the default location of the image version. + */ String location(); - /** @return the image version name. */ + /** + * Gets the image version name. + * + * @return the image version name. + */ String name(); - /** @return the provisioningState of image version resource. */ + /** + * Gets the provisioningState if image version resource. + * + * @return the provisioningState of image version resource. + */ String provisioningState(); - /** @return the publishingProfile configuration of the image version. */ + /** + * Gets the publishingProfile configuration of the image version. + * + * @return the publishingProfile configuration of the image version. + */ GalleryImageVersionPublishingProfile publishingProfile(); - /** @return the regions in which the image version is available. */ + /** + * Gets the regions in which the image version is available. + * + * @return the regions in which the image version is available. + */ List availableRegions(); - /** @return the date indicating image version's end of life. */ + /** + * Gets the date indicating image version's end of life. + * + * @return the date indicating image version's end of life. + */ OffsetDateTime endOfLifeDate(); /** + * Whether the image version is excluded from considering as a candidate when VM is created with 'latest' + * image version. + * * @return true if the image version is excluded from considering as a candidate when VM is created with 'latest' * image version, false otherwise. */ Boolean isExcludedFromLatest(); - /** @return the replicationStatus of image version in published regions. */ + /** + * Gets the replicationStatus of image version in published regions. + * + * @return the replicationStatus of image version in published regions. + */ ReplicationStatus replicationStatus(); - /** @return the image version storageProfile describing OS and data disks. */ + /** + * Gets the image version storageProfile describing OS and data disks. + * + * @return the image version storageProfile describing OS and data disks. + */ GalleryImageVersionStorageProfile storageProfile(); - /** @return the tags associated with the image version. */ + /** + * Gets the tags associated with the image version. + * + * @return the tags associated with the image version. + */ Map tags(); - /** @return the type. */ + /** + * Gets the type. + * + * @return the type. + */ String type(); /** The entirety of the gallery image version definition. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/KnownLinuxVirtualMachineImage.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/KnownLinuxVirtualMachineImage.java index c97bd154eb7f2..fc3e52a6f5abc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/KnownLinuxVirtualMachineImage.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/KnownLinuxVirtualMachineImage.java @@ -60,22 +60,38 @@ public enum KnownLinuxVirtualMachineImage { this.sku = sku; } - /** @return the name of the image publisher */ + /** + * Gets the name of the image publisher. + * + * @return the name of the image publisher + */ public String publisher() { return this.publisher; } - /** @return the name of the image offer */ + /** + * Gets the name of the image offer. + * + * @return the name of the image offer + */ public String offer() { return this.offer; } - /** @return the name of the image SKU */ + /** + * Gets the name of the image SKU. + * + * @return the name of the image SKU + */ public String sku() { return this.sku; } - /** @return the image reference */ + /** + * Gets the image reference. + * + * @return the image reference + */ public ImageReference imageReference() { return new ImageReference().withPublisher(publisher()).withOffer(offer()).withSku(sku()).withVersion("latest"); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/KnownWindowsVirtualMachineImage.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/KnownWindowsVirtualMachineImage.java index c401dcc882997..260ceccb912b4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/KnownWindowsVirtualMachineImage.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/KnownWindowsVirtualMachineImage.java @@ -49,22 +49,38 @@ public enum KnownWindowsVirtualMachineImage { this.sku = sku; } - /** @return the name of the image publisher */ + /** + * Gets the name of the image publisher. + * + * @return the name of the image publisher + */ public String publisher() { return this.publisher; } - /** @return the name of the image offer */ + /** + * Gets the name of the image offer. + * + * @return the name of the image offer + */ public String offer() { return this.offer; } - /** @return the name of the image SKU */ + /** + * Gets the name of the image SKU. + * + * @return the name of the image SKU + */ public String sku() { return this.sku; } - /** @return the image reference */ + /** + * Gets the image reference. + * + * @return the image reference + */ public ImageReference imageReference() { return new ImageReference().withPublisher(publisher()).withOffer(offer()).withSku(sku()).withVersion("latest"); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/PowerState.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/PowerState.java index 8acd4222abaef..5663c136955f3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/PowerState.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/PowerState.java @@ -30,6 +30,15 @@ public final class PowerState extends ExpandableStringEnum { /** Static value PowerState/unknown for PowerState. */ public static final PowerState UNKNOWN = fromString("PowerState/unknown"); + /** + * Creates a new instance of PowerState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PowerState() { + } + /** * Creates an instance of PowerState from the virtual machine instance view status entry corresponding to the power * state. @@ -48,7 +57,11 @@ public static PowerState fromInstanceView(VirtualMachineInstanceView virtualMach return null; } - /** @return all known power states */ + /** + * Gets all known power states. + * + * @return all known power states + */ public static Collection values() { return values(PowerState.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Snapshot.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Snapshot.java index 538fa95b624c0..7bf1962a9dcea 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Snapshot.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Snapshot.java @@ -20,22 +20,46 @@ @Fluent public interface Snapshot extends GroupableResource, Refreshable, Updatable { - /** @return the snapshot SKU type. */ + /** + * Gets the snapshot SKU type. + * + * @return the snapshot SKU type. + */ SnapshotSkuType skuType(); - /** @return whether a snapshot is incremental */ + /** + * Whether a snapshot id incremental. + * + * @return whether a snapshot is incremental + */ boolean incremental(); - /** @return the snapshot creation method */ + /** + * Gets the snapshot creation method. + * + * @return the snapshot creation method + */ DiskCreateOption creationMethod(); - /** @return disk size in GB */ + /** + * Gets disk size in GB. + * + * @return disk size in GB + */ int sizeInGB(); - /** @return the type of operating system in the snapshot */ + /** + * Gets the type of operating system in the snapshot. + * + * @return the type of operating system in the snapshot + */ OperatingSystemTypes osType(); - /** @return the details of the source from which snapshot is created */ + /** + * Gets the details of the source from which snapshot is created. + * + * @return the details of the source from which snapshot is created + */ CreationSource source(); /** diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/SnapshotSkuType.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/SnapshotSkuType.java index ee44cf3aba0fb..aedf8f3751691 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/SnapshotSkuType.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/SnapshotSkuType.java @@ -25,7 +25,11 @@ public final class SnapshotSkuType { /** The actual serialized value for a SnapshotSkuType instance. */ private final SnapshotStorageAccountTypes value; - /** @return predefined snapshot SKU types */ + /** + * Gets predefined snapshot SKU types. + * + * @return predefined snapshot SKU types + */ public static SnapshotSkuType[] values() { Collection valuesCollection = VALUES_BY_NAME.values(); return valuesCollection.toArray(new SnapshotSkuType[valuesCollection.size()]); @@ -78,7 +82,11 @@ public static SnapshotSkuType fromSnapshotSku(SnapshotSku snapshotSku) { } } - /** @return the account type associated with the SKU. */ + /** + * Gets the account type associated with the SKU. + * + * @return the account type associated with the SKU. + */ public SnapshotStorageAccountTypes accountType() { return this.value; } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachine.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachine.java index de34284327449..628dee0a3833d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachine.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachine.java @@ -138,7 +138,10 @@ public interface VirtualMachine extends GroupableResource simulateEvictionAsync(); - /** @return entry point to enabling, disabling and querying disk encryption */ + /** + * Gets entry point to enabling, disabling and querying disk encryption. + * + * @return entry point to enabling, disabling and querying disk encryption */ VirtualMachineEncryption diskEncryption(); /** Converts (migrates) the virtual machine with un-managed disks to use managed disk. */ @@ -251,37 +254,81 @@ Mono runShellScriptAsync(List scriptLines, // Getters // - /** @return true if managed disks are used for the virtual machine's disks (OS, data) */ + /** + * Whether managed disks are used for the virtual machine's disks (OS, data). + * + * @return true if managed disks are used for the virtual machine's disks (OS, data) + */ boolean isManagedDiskEnabled(); - /** @return name of this virtual machine */ + /** + * Gets name of this virtual machine. + * + * @return name of this virtual machine + */ String computerName(); - /** @return the virtual machine size */ + /** + * Gets the virtual machine size. + * + * @return the virtual machine size + */ VirtualMachineSizeTypes size(); - /** @return the operating system of this virtual machine */ + /** + * Gets the operating system of this virtual machine. + * + * @return the operating system of this virtual machine + */ OperatingSystemTypes osType(); - /** @return the URI to the VHD file backing this virtual machine's operating system disk */ + /** + * Gets the URI to the VHD file backing this virtual machine's operating system disk. + * + * @return the URI to the VHD file backing this virtual machine's operating system disk + */ String osUnmanagedDiskVhdUri(); - /** @return the operating system disk caching type */ + /** + * Gets the operating system disk caching type. + * + * @return the operating system disk caching type + */ CachingTypes osDiskCachingType(); - /** @return the size of the operating system disk in GB */ + /** + * Gets the size of the operating system disk in GB. + * + * @return the size of the operating system disk in GB + */ int osDiskSize(); - /** @return the storage account type of the managed disk backing OS disk */ + /** + * Gets the storage account type of the managed disk backing OS disk. + * + * @return the storage account type of the managed disk backing OS disk + */ StorageAccountTypes osDiskStorageAccountType(); - /** @return resource ID of the managed disk backing the OS disk */ + /** + * GEts resource ID of the managed disk backing the OS disk. + * + * @return resource ID of the managed disk backing the OS disk + */ String osDiskId(); - /** @return the delete options of the OS disk */ + /** + * Gets the delete options of the OS disk. + * + * @return the delete options of the OS disk + */ DeleteOptions osDiskDeleteOptions(); - /** @return resource ID of the disk encryption set of the OS disk */ + /** + * Gets resource ID of the disk encryption set of the OS disk. + * + * @return resource ID of the disk encryption set of the OS disk + */ String osDiskDiskEncryptionSetId(); /** @@ -291,16 +338,32 @@ Mono runShellScriptAsync(List scriptLines, */ boolean isOsDiskWriteAcceleratorEnabled(); - /** @return whether the os disk is ephemeral*/ + /** + * Whether the os disk is ephemeral. + * + * @return whether the os disk is ephemeral + */ boolean isOSDiskEphemeral(); - /** @return whether encryption at host*/ + /** + * Whether encryption at host. + * + * @return whether encryption at host + */ boolean isEncryptionAtHost(); - /** @return the unmanaged data disks associated with this virtual machine, indexed by LUN number */ + /** + * Gets the unmanaged data disks associated with this virtual machine, indexed by LUN number. + * + * @return the unmanaged data disks associated with this virtual machine, indexed by LUN number + */ Map unmanagedDataDisks(); - /** @return the managed data disks associated with this virtual machine, indexed by LUN */ + /** + * Gets the managed data disks associated with this virtual machine, indexed by LUN. + * + * @return the managed data disks associated with this virtual machine, indexed by LUN + */ Map dataDisks(); /** @@ -313,20 +376,38 @@ Mono runShellScriptAsync(List scriptLines, PublicIpAddress getPrimaryPublicIPAddress(); /** + * Gets the resource ID of the public IP address associated with this virtual machine's primary network interface. + * * @return the resource ID of the public IP address associated with this virtual machine's primary network interface */ String getPrimaryPublicIPAddressId(); - /** @return the resource ID of the availability set associated with this virtual machine */ + /** + * Gets the resource ID of the availability set associated with this virtual machine. + * + * @return the resource ID of the availability set associated with this virtual machine + */ String availabilitySetId(); - /** @return the resource ID of the virtual machine scale set associated with this virtual machine */ + /** + * Gets the resource ID of the virtual machine scale set associated with this virtual machine. + * + * @return the resource ID of the virtual machine scale set associated with this virtual machine + */ String virtualMachineScaleSetId(); - /** @return the provisioningState value */ + /** + * Gets the provisioningState value. + * + * @return the provisioningState value + */ String provisioningState(); - /** @return the licenseType value */ + /** + * Gets the licenseType value. + * + * @return the licenseType value + */ String licenseType(); /** @@ -338,15 +419,25 @@ Mono runShellScriptAsync(List scriptLines, ProximityPlacementGroup proximityPlacementGroup(); /** + * Gets extensions attached to the virtual machine. + * * @return a representation of the deferred computation of this call, returning extensions attached to the virtual * machine */ Mono> listExtensionsAsync(); - /** @return extensions attached to the virtual machine */ + /** + * Gets extensions attached to the virtual machine. + * + * @return extensions attached to the virtual machine + */ Map listExtensions(); - /** @return the plan value */ + /** + * Gets the plan value. + * + * @return the plan value + */ Plan plan(); /** @@ -356,16 +447,32 @@ Mono runShellScriptAsync(List scriptLines, */ StorageProfile storageProfile(); - /** @return the operating system profile */ + /** + * Gets the operating system profile. + * + * @return the operating system profile + */ OSProfile osProfile(); - /** @return the diagnostics profile */ + /** + * Gets the diagnostics profile. + * + * @return the diagnostics profile + */ DiagnosticsProfile diagnosticsProfile(); - /** @return the virtual machine unique ID. */ + /** + * Gets the virtual machine unique ID. + * + * @return the virtual machine unique ID. + */ String vmId(); - /** @return the power state of the virtual machine */ + /** + * Gets the power state of the virtual machine. + * + * @return the power state of the virtual machine + */ PowerState powerState(); /** @@ -377,46 +484,90 @@ Mono runShellScriptAsync(List scriptLines, */ VirtualMachineInstanceView instanceView(); - /** @return the availability zones assigned to the virtual machine */ + /** + * Gets the availability zones assigned to the virtual machine. + * + * @return the availability zones assigned to the virtual machine + */ Set availabilityZones(); - /** @return true if boot diagnostics is enabled for the virtual machine */ + /** + * Whether boot diagnostics is enabled for the virtual machine. + * + * @return true if boot diagnostics is enabled for the virtual machine + */ boolean isBootDiagnosticsEnabled(); - /** @return the storage blob endpoint uri if boot diagnostics is enabled for the virtual machine */ + /** + * Gets the storage blob endpoint uri if boot diagnostics is enabled for the virtual machine. + * + * @return the storage blob endpoint uri if boot diagnostics is enabled for the virtual machine + */ String bootDiagnosticsStorageUri(); - /** @return true if Managed Service Identity is enabled for the virtual machine */ + /** + * Whether Managed Service Identity is enabled for the virtual machine. + * + * @return true if Managed Service Identity is enabled for the virtual machine + */ boolean isManagedServiceIdentityEnabled(); /** + * Gets System Assigned (Local) Managed Service Identity specific Active Directory tenant ID assigned to the + * virtual machine. + * * @return the System Assigned (Local) Managed Service Identity specific Active Directory tenant ID assigned to the * virtual machine. */ String systemAssignedManagedServiceIdentityTenantId(); /** + * Gets the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID + * assigned to the virtual machine. + * * @return the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID * assigned to the virtual machine. */ String systemAssignedManagedServiceIdentityPrincipalId(); - /** @return the type of Managed Service Identity used for the virtual machine. */ + /** + * Gets the type of Managed Service Identity used for the virtual machine. + * + * @return the type of Managed Service Identity used for the virtual machine. + */ ResourceIdentityType managedServiceIdentityType(); - /** @return the resource ids of User Assigned Managed Service Identities associated with the virtual machine. */ + /** + * Gets the resource ids of User Assigned Managed Service Identities associated with the virtual machine. + * + * @return the resource ids of User Assigned Managed Service Identities associated with the virtual machine. + */ Set userAssignedManagedServiceIdentityIds(); - /** @return the priority for the virtual machine. */ + /** + * Gets the priority for the virtual machine. + * + * @return the priority for the virtual machine. + */ VirtualMachinePriorityTypes priority(); - /** @return the eviction policy for the virtual machine. */ + /** + * Gets the eviction policy for the virtual machine. + * + * @return the eviction policy for the virtual machine. + */ VirtualMachineEvictionPolicyTypes evictionPolicy(); - /** @return the billing related details of a low priority virtual machine */ + /** + * Gets the billing related details of a low priority virtual machine. + * + * @return the billing related details of a low priority virtual machine + */ BillingProfile billingProfile(); /** + * Whether hibernation feature is enabled on the virtual machine. + * * @return true if hibernation feature is enabled on the virtual machine. */ boolean isHibernationEnabled(); @@ -428,16 +579,32 @@ Mono runShellScriptAsync(List scriptLines, */ boolean isUltraSsdEnabled(); - /** @return the {@link SecurityTypes} of the virtual machine */ + /** + * Gets the {@link SecurityTypes} of the virtual machine. + * + * @return the {@link SecurityTypes} of the virtual machine + */ SecurityTypes securityType(); - /** @return whether secure boot is enabled on the virtual machine */ + /** + * Whether secure boot is enabled on the virtual machine + * + * @return whether secure boot is enabled on the virtual machine + */ boolean isSecureBootEnabled(); - /** @return whether vTPM is enabled on the virtual machine */ + /** + * Whether vTPM is enabled on the virtual machine. + * + * @return whether vTPM is enabled on the virtual machine + */ boolean isVTpmEnabled(); - /** @return the time at which the Virtual Machine resource was created */ + /** + * Gets the time at which the Virtual Machine resource was created. + * + * @return the time at which the Virtual Machine resource was created + */ OffsetDateTime timeCreated(); /** diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineCustomImage.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineCustomImage.java index 52c5c98209098..50ed10c74f8d7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineCustomImage.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineCustomImage.java @@ -19,19 +19,39 @@ @Fluent public interface VirtualMachineCustomImage extends GroupableResource, Refreshable { - /** @return true if this image was created by capturing a virtual machine */ + /** + * Whether this image was created by capturing a virtual machine. + * + * @return true if this image was created by capturing a virtual machine + */ boolean isCreatedFromVirtualMachine(); - /** @return the hyper v Generation */ + /** + * Gets the hyper v Generation. + * + * @return the hyper v Generation + */ HyperVGenerationTypes hyperVGeneration(); - /** @return ID of the virtual machine if this image was created by capturing that virtual machine */ + /** + * Gets ID of the virtual machine. + * + * @return ID of the virtual machine if this image was created by capturing that virtual machine + */ String sourceVirtualMachineId(); - /** @return operating system disk image in this image */ + /** + * Gets operating system disk image in this image. + * + * @return operating system disk image in this image + */ ImageOSDisk osDiskImage(); - /** @return data disk images in this image, indexed by the disk LUN */ + /** + * Gets data disk images in this image. + * + * @return data disk images in this image, indexed by the disk LUN + */ Map dataDiskImages(); /** The entirety of the image definition. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java index e166a13109fde..df0e9abef2e89 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java @@ -11,29 +11,57 @@ /** A managed data disk of a virtual machine. */ @Fluent public interface VirtualMachineDataDisk extends HasInnerModel, HasName, HasId { - /** @return the size of this data disk in GB */ + /** + * Gets the size of this data disk in GB. + * + * @return the size of this data disk in GB + */ int size(); - /** @return the logical unit number assigned to this data disk */ + /** + * Gets the logical unit number assigned to this data disk. + * + * @return the logical unit number assigned to this data disk + */ int lun(); - /** @return the disk caching type */ + /** + * Gets the disk caching type. + * + * @return the disk caching type + */ CachingTypes cachingType(); - /** @return the creation method used while creating this disk */ + /** + * Gets the creation method used while creating this disk. + * + * @return the creation method used while creating this disk + */ DiskCreateOptionTypes creationMethod(); - /** @return the storage account type of the disk */ + /** + * Gets the storage account type of the disk. + * + * @return the storage account type of the disk + */ StorageAccountTypes storageAccountType(); - /** @return the disk delete options */ + /** + * Gets the disk delete options. + * + * @return the disk delete options + */ DeleteOptions deleteOptions(); - /** @return the ID of disk encryption set */ + /** + * Gets the ID of disk encryption set. + * + * @return the ID of disk encryption set + */ String diskEncryptionSetId(); /** - * Gets whether the write accelerator is enabled. + * Whether the write accelerator is enabled. * * @return whether the write accelerator is enabled */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java index 1e9ccd7a282fe..73ef4d5738474 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java @@ -19,23 +19,35 @@ public final class VirtualMachineDiskOptions { // If disk is already encrypted with CMK, it remains so when attached. private DiskEncryptionSetParameters diskEncryptionSetOptions; - /** @return the disk storage account type */ + /** + * Gets the disk storage account type. + * + * @return the disk storage account type + */ public StorageAccountTypes storageAccountType() { return storageAccountType; } - /** @return the disk caching type */ + /** + * Gets the disk caching type. + * + * @return the disk caching type + */ public CachingTypes cachingTypes() { return cachingTypes; } - /** @return the disk delete options */ + /** + * Gets the disk delete options. + * + * @return the disk delete options + */ public DeleteOptions deleteOptions() { return deleteOptions; } /** - * Gets whether the write accelerator is enabled. {@literal null} if no change. + * Whether the write accelerator is enabled. {@literal null} if no change. * * @return whether the write accelerator is enabled */ @@ -43,13 +55,21 @@ public Boolean writeAcceleratorEnabled() { return writeAcceleratorEnabled; } - /** @return whether disk encryption set is configured, - * either as the ID of disk encryption set, or as {@code null} to override default configuration. */ + /** + * Whether disk encryption set is configured. + * + * @return whether disk encryption set is configured, + * either as the ID of disk encryption set, or as {@code null} to override default configuration. + */ public boolean isDiskEncryptionSetConfigured() { return diskEncryptionSetOptions != null; } - /** @return the ID of disk encryption set */ + /** + * Gets the ID of disk encryption set. + * + * @return the ID of disk encryption set + */ public String diskEncryptionSetId() { if (diskEncryptionSetOptions == null) { return null; diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineEncryption.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineEncryption.java index a8221dbd15939..9f4ed043243b4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineEncryption.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineEncryption.java @@ -51,7 +51,11 @@ public interface VirtualMachineEncryption { */ Mono disableAsync(DiskVolumeType volumeType); - /** @return observable that emits current volume encryption/decryption status */ + /** + * Gets observable that emits current volume encryption/decryption status. + * + * @return observable that emits current volume encryption/decryption status + */ Mono getMonitorAsync(); /** @@ -96,6 +100,10 @@ public interface VirtualMachineEncryption { */ DiskVolumeEncryptionMonitor disable(DiskVolumeType volumeType); - /** @return current volume decryption status */ + /** + * Gets current volume decryption status. + * + * @return current volume decryption status + */ DiskVolumeEncryptionMonitor getMonitor(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineEncryptionConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineEncryptionConfiguration.java index 897cb4b4f4791..98aea1a166810 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineEncryptionConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineEncryptionConfiguration.java @@ -105,20 +105,36 @@ protected VirtualMachineEncryptionConfiguration(String keyVaultId, String vaultU this.azureEnvironment = azureEnvironment; } - /** @return the operating system type */ + /** + * Gets the operating system type. + * + * @return the operating system type + */ public abstract OperatingSystemTypes osType(); - /** @return the AAD application client ID to access the key vault */ + /** + * Gets the AAD application client ID to access the key vault. + * + * @return the AAD application client ID to access the key vault + */ public String aadClientId() { return this.aadClientId; } - /** @return the AAD application client secret to access the key vault */ + /** + * Gets the AAD application client secret to access the key vault. + * + * @return the AAD application client secret to access the key vault + */ public String aadSecret() { return this.aadSecret; } - /** @return type of the volume to perform encryption operation */ + /** + * Gets type of the volume to perform encryption operation. + * + * @return type of the volume to perform encryption operation + */ public DiskVolumeType volumeType() { if (this.volumeType != null) { return this.volumeType; @@ -126,12 +142,20 @@ public DiskVolumeType volumeType() { return DiskVolumeType.ALL; } - /** @return resource ID of the key vault to store the disk encryption key */ + /** + * Gets resource ID of the key vault to store the disk encryption key. + * + * @return resource ID of the key vault to store the disk encryption key + */ public String keyVaultId() { return this.keyVaultId; } - /** @return URL to the key vault to store the disk encryption key */ + /** + * Gets URL to the key vault to store the disk encryption key. + * + * @return URL to the key vault to store the disk encryption key + */ public String keyVaultUrl() { if (vaultUri != null) { return vaultUri; @@ -145,22 +169,38 @@ public String keyVaultUrl() { return String.format("https://%1$s%2$s", keyVaultName.toLowerCase(Locale.ROOT), keyVaultDnsSuffix); } - /** @return resource ID of the Key Vault holding key encryption key (KEK) */ + /** + * Gets resource ID of the Key Vault holding key encryption key (KEK). + * + * @return resource ID of the Key Vault holding key encryption key (KEK) + */ public String keyEncryptionKeyVaultId() { return this.keyEncryptionKeyVaultId; } - /** @return key vault URL to the key (KEK) to protect (encrypt) the disk-encryption key */ + /** + * Gets key vault URL to the key (KEK) to protect (encrypt) the disk-encryption key. + * + * @return key vault URL to the key (KEK) to protect (encrypt) the disk-encryption key + */ public String keyEncryptionKeyUrl() { return this.keyEncryptionKeyUrl; } - /** @return the algorithm used to encrypt the disk-encryption key */ + /** + * Gets the algorithm used to encrypt the disk-encryption key. + * + * @return the algorithm used to encrypt the disk-encryption key + */ public String volumeEncryptionKeyEncryptAlgorithm() { return this.encryptionAlgorithm; } - /** @return the pass phrase to encrypt Linux OS and data disks */ + /** + * Gets the pass phrase to encrypt Linux OS and data disks. + * + * @return the pass phrase to encrypt Linux OS and data disks + */ public String linuxPassPhrase() { return this.passPhrase; } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtension.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtension.java index 795191062b8a1..c589f139f933e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtension.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtension.java @@ -16,12 +16,19 @@ public interface VirtualMachineExtension extends VirtualMachineExtensionBase, ExternalChildResource { /** + * Gets a representation of the deferred computation of this call returning the virtual machine extension + * instance view + * * @return a representation of the deferred computation of this call returning the virtual machine extension * instance view */ Mono getInstanceViewAsync(); - /** @return the instance view of the virtual machine extension */ + /** + * Gets the instance view of the virtual machine extension. + * + * @return the instance view of the virtual machine extension + */ VirtualMachineExtensionInstanceView getInstanceView(); /** Grouping of virtual machine extension definition stages as a part of parent virtual machine definition. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionBase.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionBase.java index 26d6c56b6269c..277a8518658bb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionBase.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionBase.java @@ -11,30 +11,61 @@ /** An immutable client-side representation of an extension associated with virtual machine. */ @Fluent public interface VirtualMachineExtensionBase extends HasInnerModel { - /** @return the publisher name of the virtual machine extension image this extension is created from */ + /** + * Gets the publisher name of the virtual machine extension image this extension is created from. + * + * @return the publisher name of the virtual machine extension image this extension is created from + */ String publisherName(); - /** @return the type name of the virtual machine extension image this extension is created from */ + /** + * Gets the type name of the virtual machine extension image this extension is created from. + * + * @return the type name of the virtual machine extension image this extension is created from + */ String typeName(); - /** @return the version name of the virtual machine extension image this extension is created from */ + /** + * Gets the version name of the virtual machine extension image this extension is created from. + * + * @return the version name of the virtual machine extension image this extension is created from + */ String versionName(); /** + * Whether this extension is configured to upgrade automatically when a new minor version of the extension + * image that this extension based on is published. + * * @return true if this extension is configured to upgrade automatically when a new minor version of the extension * image that this extension based on is published */ boolean autoUpgradeMinorVersionEnabled(); - /** @return the public settings of the virtual machine extension as key value pairs */ + /** + * Gets the public settings of the virtual machine extension as key value pairs. + * + * @return the public settings of the virtual machine extension as key value pairs + */ Map publicSettings(); - /** @return the public settings of the virtual machine extension as a JSON string */ + /** + * Gets the public settings of the virtual machine extension as a JSON string. + * + * @return the public settings of the virtual machine extension as a JSON string + */ String publicSettingsAsJsonString(); - /** @return the provisioning state of the virtual machine extension */ + /** + * Gets the provisioning state of the virtual machine extension. + * + * @return the provisioning state of the virtual machine extension + */ String provisioningState(); - /** @return the tags for this virtual machine extension */ + /** + * Gets the tags for this virtual machine extension. + * + * @return the tags for this virtual machine extension + */ Map tags(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImage.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImage.java index a7899c864f3ab..59c9ef82e31ad 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImage.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImage.java @@ -14,38 +14,80 @@ */ @Fluent public interface VirtualMachineExtensionImage extends HasInnerModel { - /** @return the resource ID of the extension image */ + /** + * Gets the resource ID of the extension image. + * + * @return the resource ID of the extension image + */ String id(); - /** @return the region in which virtual machine extension image is available */ + /** + * Gets the region in which virtual machine extension image is available. + * + * @return the region in which virtual machine extension image is available + */ String regionName(); - /** @return the name of the publisher of the virtual machine extension image */ + /** + * Gets the name of the publisher of the virtual machine extension image. + * + * @return the name of the publisher of the virtual machine extension image + */ String publisherName(); - /** @return the name of the virtual machine extension image type this image belongs to */ + /** + * Gets the name of the virtual machine extension image type this image belongs to. + * + * @return the name of the virtual machine extension image type this image belongs to + */ String typeName(); - /** @return the name of the virtual machine extension image version this image represents */ + /** + * Gets the name of the virtual machine extension image version this image represents. + * + * @return the name of the virtual machine extension image version this image represents + */ String versionName(); - /** @return the operating system this virtual machine extension image supports */ + /** + * Gets the operating system this virtual machine extension image supports. + * + * @return the operating system this virtual machine extension image supports + */ OperatingSystemTypes osType(); - /** @return the type of role this virtual machine extension image supports */ + /** + * Gets the type of role this virtual machine extension image supports. + * + * @return the type of role this virtual machine extension image supports + */ ComputeRoles computeRole(); /** + * Gets the schema defined by publisher. + * * @return the schema defined by publisher, where extension consumers should provide settings in a matching schema */ String handlerSchema(); - /** @return true if the extension can be used with virtual machine scale sets, false otherwise */ + /** + * Whether the extension can be used with virtual machine scale sets. + * + * @return true if the extension can be used with virtual machine scale sets, false otherwise + */ boolean supportsVirtualMachineScaleSets(); - /** @return true if the handler can support multiple extensions */ + /** + * Whether the handler can support multiple extensions. + * + * @return true if the handler can support multiple extensions + */ boolean supportsMultipleExtensions(); - /** @return the virtual machine extension image version this image belongs to */ + /** + * Gets the virtual machine extension image version this image belongs to. + * + * @return the virtual machine extension image version this image belongs to + */ VirtualMachineExtensionImageVersion version(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImageType.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImageType.java index 3eabe9cfd4d4b..e6778c69bf902 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImageType.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImageType.java @@ -11,15 +11,31 @@ /** An immutable client-side representation of an Azure virtual machine extension image type. */ @Fluent public interface VirtualMachineExtensionImageType extends HasInnerModel, HasName { - /** @return the resource ID of the virtual machine extension image type */ + /** + * Gets the resource ID of the virtual machine extension image type. + * + * @return the resource ID of the virtual machine extension image type + */ String id(); - /** @return the region in which virtual machine extension image type is available */ + /** + * Gets the region in which virtual machine extension image type is available. + * + * @return the region in which virtual machine extension image type is available + */ String regionName(); - /** @return the publisher of this virtual machine extension image type */ + /** + * Gets the publisher of this virtual machine extension image type. + * + * @return the publisher of this virtual machine extension image type + */ VirtualMachinePublisher publisher(); - /** @return Virtual machine image extension versions available in this type */ + /** + * Gets Virtual machine image extension versions available in this type. + * + * @return Virtual machine image extension versions available in this type + */ VirtualMachineExtensionImageVersions versions(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImageVersion.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImageVersion.java index b8795e6ac9abf..6acb5b190c839 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImageVersion.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImageVersion.java @@ -12,18 +12,38 @@ /** An immutable client-side representation of an Azure virtual machine extension image version. */ @Fluent public interface VirtualMachineExtensionImageVersion extends HasInnerModel, HasName { - /** @return the resource ID of the extension image version */ + /** + * Gets the resource ID of the extension image version. + * + * @return the resource ID of the extension image version + */ String id(); - /** @return the region in which virtual machine extension image version is available */ + /** + * Gets the region in which virtual machine extension image version is available. + * + * @return the region in which virtual machine extension image version is available + */ String regionName(); - /** @return the virtual machine extension image type this version belongs to */ + /** + * Gets the virtual machine extension image type this version belongs to. + * + * @return the virtual machine extension image type this version belongs to + */ VirtualMachineExtensionImageType type(); - /** @return virtual machine extension image this version represents */ + /** + * Gets virtual machine extension image this version represents. + * + * @return virtual machine extension image this version represents + */ VirtualMachineExtensionImage getImage(); - /** @return an observable upon subscription emits the image */ + /** + * Gets an observable upon subscription emits the image. + * + * @return an observable upon subscription emits the image + */ Mono getImageAsync(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImages.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImages.java index 8175428fd7844..5aa5eeab32992 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImages.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionImages.java @@ -9,6 +9,10 @@ /** Entry point to virtual machine extension image management. */ @Fluent public interface VirtualMachineExtensionImages extends SupportsListingByRegion { - /** @return entry point to virtual machine extension image publishers */ + /** + * Gets entry point to virtual machine extension image publishers. + * + * @return entry point to virtual machine extension image publishers + */ VirtualMachinePublishers publishers(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineImage.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineImage.java index f01ba85a51fcb..a0382e16c025f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineImage.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineImage.java @@ -11,33 +11,73 @@ /** An immutable client-side representation of an Azure virtual machine image. */ @Fluent public interface VirtualMachineImage extends HasInnerModel { - /** @return the resource ID of this image */ + /** + * Gets the resource ID of this image. + * + * @return the resource ID of this image + */ String id(); - /** @return the region in which virtual machine image is available */ + /** + * Gets the region in which virtual machine image is available. + * + * @return the region in which virtual machine image is available + */ Region location(); - /** @return the publisher name of the virtual machine image */ + /** + * Gets the publisher name of the virtual machine image. + * + * @return the publisher name of the virtual machine image + */ String publisherName(); - /** @return the name of the virtual machine image offer this image is part of */ + /** + * Gets the name of the virtual machine image offer this image is part of. + * + * @return the name of the virtual machine image offer this image is part of + */ String offer(); - /** @return the commercial name of the virtual machine image (SKU) */ + /** + * Gets the commercial name of the virtual machine image (SKU). + * + * @return the commercial name of the virtual machine image (SKU) + */ String sku(); - /** @return the version of the virtual machine image */ + /** + * Gets the version of the virtual machine image. + * + * @return the version of the virtual machine image + */ String version(); - /** @return the image reference representing the publisher, offer, SKU and version of the virtual machine image */ + /** + * Gets the image reference representing the publisher, offer, SKU and version of the virtual machine image. + * + * @return the image reference representing the publisher, offer, SKU and version of the virtual machine image + */ ImageReference imageReference(); - /** @return the purchase plan for the virtual machine image */ + /** + * Gets the purchase plan for the virtual machine image. + * + * @return the purchase plan for the virtual machine image + */ PurchasePlan plan(); - /** @return OS disk image in the virtual machine image */ + /** + * Gets OS disk image in the virtual machine image. + * + * @return OS disk image in the virtual machine image + */ OSDiskImage osDiskImage(); - /** @return data disk images in the virtual machine image, indexed by the disk LUN */ + /** + * Gets data disk images in the virtual machine image. + * + * @return data disk images in the virtual machine image, indexed by the disk LUN + */ Map dataDiskImages(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineImages.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineImages.java index a0b527de5a5f6..35393dbaeff18 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineImages.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineImages.java @@ -33,6 +33,10 @@ public interface VirtualMachineImages extends SupportsListingByRegion, Refreshable, Updatable { // Actions - /** @return entry point to manage virtual machine instances in the scale set. */ + /** + * Gets entry point to manage virtual machine instances in the scale set.. + * + * @return entry point to manage virtual machine instances in the scale set. + */ VirtualMachineScaleSetVMs virtualMachines(); /** + * Gets available SKUs for the virtual machine scale set. + * * @return available SKUs for the virtual machine scale set, including the minimum and maximum virtual machine * instances allowed for a particular SKU */ @@ -160,31 +166,67 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List Mono runCommandVMInstanceAsync(String vmId, RunCommandInput inputCommand); // Getters - /** @return the name prefix of the virtual machines in the scale set */ + /** + * Gets the name prefix of the virtual machines in the scale set. + * + * @return the name prefix of the virtual machines in the scale set + */ String computerNamePrefix(); - /** @return the operating system of the virtual machines in the scale set */ + /** + * Gets the operating system of the virtual machines in the scale set. + * + * @return the operating system of the virtual machines in the scale set + */ OperatingSystemTypes osType(); - /** @return the operating system disk caching type */ + /** + * Gets the operating system disk caching type. + * + * @return the operating system disk caching type + */ CachingTypes osDiskCachingType(); - /** @return the name of the OS disk of virtual machines in the scale set */ + /** + * Gets the name of the OS disk of virtual machines in the scale set. + * + * @return the name of the OS disk of virtual machines in the scale set + */ String osDiskName(); - /** @return whether the instance OS disk is ephemeral */ + /** + * Whether the instance OS disk is ephemeral. + * + * @return whether the instance OS disk is ephemeral + */ boolean isEphemeralOSDisk(); - /** @return the upgrade model, null for scale set with {@link OrchestrationMode#FLEXIBLE} */ + /** + * Gets the upgrade model, null for scale set with {@link OrchestrationMode#FLEXIBLE}. + * + * @return the upgrade model, null for scale set with {@link OrchestrationMode#FLEXIBLE} + */ UpgradeMode upgradeModel(); - /** @return true if over provision is enabled for the virtual machines, false otherwise */ + /** + * Whether over provision is enabled for the virtual machines. + * + * @return true if over provision is enabled for the virtual machines, false otherwise + */ boolean overProvisionEnabled(); - /** @return the SKU of the virtual machines in the scale set */ + /** + * Gets the SKU of the virtual machines in the scale set. + * + * @return the SKU of the virtual machines in the scale set + */ VirtualMachineScaleSetSkuTypes sku(); - /** @return the number of virtual machine instances in the scale set */ + /** + * Gets the number of virtual machine instances in the scale set. + * + * @return the number of virtual machine instances in the scale set + */ int capacity(); /** @@ -245,25 +287,53 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List */ List primaryPublicIpAddressIds() throws IOException; - /** @return the URL to storage containers that store the VHDs of the virtual machines in the scale set */ + /** + * Gets the URL to storage containers that store the VHDs of the virtual machines in the scale set. + * + * @return the URL to storage containers that store the VHDs of the virtual machines in the scale set + */ List vhdContainers(); - /** @return the storage profile */ + /** + * Gets the storage profile. + * + * @return the storage profile + */ VirtualMachineScaleSetStorageProfile storageProfile(); - /** @return the network profile */ + /** + * Gets the network profile. + * + * @return the network profile + */ VirtualMachineScaleSetNetworkProfile networkProfile(); - /** @return the extensions attached to the virtual machines in the scale set */ + /** + * Gets the extensions attached to the virtual machines in the scale set. + * + * @return the extensions attached to the virtual machines in the scale set + */ Map extensions(); - /** @return the priority of virtual machines in the scale set. */ + /** + * Gets the priority of virtual machines in the scale set. + * + * @return the priority of virtual machines in the scale set. + */ VirtualMachinePriorityTypes virtualMachinePriority(); - /** @return the billing related details of the low priority virtual machines in the scale set. */ + /** + * Gets the billing related details of the low priority virtual machines in the scale set. + * + * @return the billing related details of the low priority virtual machines in the scale set. + */ BillingProfile billingProfile(); - /** @return the eviction policy of the virtual machines in the scale set. */ + /** + * Gets the eviction policy of the virtual machines in the scale set. + * + * @return the eviction policy of the virtual machines in the scale set. + */ VirtualMachineEvictionPolicyTypes virtualMachineEvictionPolicy(); /** @@ -284,7 +354,11 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List */ Mono getNetworkInterfaceByInstanceIdAsync(String instanceId, String name); - /** @return the network interfaces associated with all virtual machine instances in a scale set */ + /** + * Gets the network interfaces associated with all virtual machine instances in a scale set. + * + * @return the network interfaces associated with all virtual machine instances in a scale set + */ PagedIterable listNetworkInterfaces(); /** @@ -305,70 +379,135 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List PagedFlux listNetworkInterfacesByInstanceIdAsync(String virtualMachineInstanceId); - /** @return true if managed disk is used for the virtual machine scale set's disks (os, data) */ + /** + * Whether managed disk is used for the virtual machine scale set's disks (os, data). + * + * @return true if managed disk is used for the virtual machine scale set's disks (os, data) + */ boolean isManagedDiskEnabled(); - /** @return true if Managed Service Identity is enabled for the virtual machine scale set */ + /** + * Whether Managed Service Identity is enabled for the virtual machine scale set. + * + * @return true if Managed Service Identity is enabled for the virtual machine scale set + */ boolean isManagedServiceIdentityEnabled(); /** + * Gets the System Assigned (Local) Managed Service Identity specific Active Directory tenant ID assigned to the + * virtual machine scale set. + * * @return the System Assigned (Local) Managed Service Identity specific Active Directory tenant ID assigned to the * virtual machine scale set. */ String systemAssignedManagedServiceIdentityTenantId(); /** + * Gets the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID + * assigned to the virtual machine scale set. + * * @return the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID * assigned to the virtual machine scale set. */ String systemAssignedManagedServiceIdentityPrincipalId(); - /** @return the type of Managed Service Identity used for the virtual machine scale set. */ + /** + * Gets the type of Managed Service Identity used for the virtual machine scale set. + * + * @return the type of Managed Service Identity used for the virtual machine scale set. + */ ResourceIdentityType managedServiceIdentityType(); /** + * Gets the resource ids of User Assigned Managed Service Identities associated with the virtual machine scale + * set. + * * @return the resource ids of User Assigned Managed Service Identities associated with the virtual machine scale * set. */ Set userAssignedManagedServiceIdentityIds(); - /** @return the availability zones assigned to virtual machine scale set. */ + /** + * Gets the availability zones assigned to virtual machine scale set. + * + * @return the availability zones assigned to virtual machine scale set. + */ Set availabilityZones(); - /** @return true if boot diagnostics is enabled for the virtual machine scale set. */ + /** + * Whether boot diagnostics is enabled for the virtual machine scale set. + * + * @return true if boot diagnostics is enabled for the virtual machine scale set. + */ boolean isBootDiagnosticsEnabled(); - /** @return the storage blob endpoint uri if boot diagnostics is enabled for the virtual machine scale set. */ + /** + * Gets the storage blob endpoint uri. + * + * @return the storage blob endpoint uri if boot diagnostics is enabled for the virtual machine scale set. + */ String bootDiagnosticsStorageUri(); /** + * Gets the storage account type of the OS managed disk. + * * @return the storage account type of the OS managed disk. A null value will be returned if the virtual machine * scale set is based on un-managed disk. */ StorageAccountTypes managedOSDiskStorageAccountType(); - /** @return the public ip configuration of virtual machines in the scale set. */ + /** + * Gets the public ip configuration of virtual machines in the scale set. + * + * @return the public ip configuration of virtual machines in the scale set. + */ VirtualMachineScaleSetPublicIpAddressConfiguration virtualMachinePublicIpConfig(); - /** @return true if ip forwarding is enabled for the virtual machine scale set. */ + /** + * Whether ip forwarding is enabled for the virtual machine scale set. + * + * @return true if ip forwarding is enabled for the virtual machine scale set. + */ boolean isIpForwardingEnabled(); - /** @return true if accelerated networking is enabled for the virtual machine scale set. */ + /** + * Whether accelerated networking is enabled for the virtual machine scale set. + * + * @return true if accelerated networking is enabled for the virtual machine scale set. + */ boolean isAcceleratedNetworkingEnabled(); - /** @return the network security group ARM id. */ + /** + * Gets the network security group ARM id. + * + * @return the network security group ARM id. + */ String networkSecurityGroupId(); - /** @return true if single placement group is enabled for the virtual machine scale set. */ + /** + * Whether single placement group is enabled for the virtual machine scale set. + * + * @return true if single placement group is enabled for the virtual machine scale set. + */ boolean isSinglePlacementGroupEnabled(); - /** @return the list of application gateway backend pool associated with the virtual machine scale set. */ + /** + * Gets the list of application gateway backend pool associated with the virtual machine scale set. + * + * @return the list of application gateway backend pool associated with the virtual machine scale set. + */ List applicationGatewayBackendAddressPoolsIds(); - /** @return the list of application security groups associated with the virtual machine scale set. */ + /** + * Gets the list of application security groups associated with the virtual machine scale set. + * + * @return the list of application security groups associated with the virtual machine scale set. + */ List applicationSecurityGroupIds(); /** + * Whether Overprovision is enabled. + * * @return When Overprovision is enabled, extensions are launched only on the requested number of VMs which are * finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned * VMs. @@ -393,6 +532,8 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List AdditionalCapabilities additionalCapabilities(); /** + * Gets the purchase plan information about marketplace image. + * * @return the purchase plan information about marketplace image */ Plan plan(); diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtension.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtension.java index db9a06f94d286..65d29e61736d0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtension.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtension.java @@ -16,28 +16,55 @@ @Fluent public interface VirtualMachineScaleSetExtension extends HasInnerModel, ChildResource { - /** @return the publisher name of the virtual machine scale set extension image this extension is created from */ + /** + * Gets the publisher name of the virtual machine scale set extension image this extension is created from. + * + * @return the publisher name of the virtual machine scale set extension image this extension is created from + */ String publisherName(); - /** @return the type name of the virtual machine scale set extension image this extension is created from */ + /** + * Gets the type name of the virtual machine scale set extension image this extension is created from. + * + * @return the type name of the virtual machine scale set extension image this extension is created from + */ String typeName(); - /** @return the version name of the virtual machine scale set extension image this extension is created from */ + /** + * Gets the version name of the virtual machine scale set extension image this extension is created from. + * + * @return the version name of the virtual machine scale set extension image this extension is created from + */ String versionName(); /** + * Whether this extension is configured to upgrade automatically when a new minor version of the extension + * image that this extension based on is published. + * * @return true if this extension is configured to upgrade automatically when a new minor version of the extension * image that this extension based on is published */ boolean autoUpgradeMinorVersionEnabled(); - /** @return the public settings of the virtual machine scale set extension as key value pairs */ + /** + * Gets the public settings of the virtual machine scale set extension as key value pairs. + * + * @return the public settings of the virtual machine scale set extension as key value pairs + */ Map publicSettings(); - /** @return the public settings of the virtual machine extension as a JSON string */ + /** + * Gets the public settings of the virtual machine extension as a JSON string. + * + * @return the public settings of the virtual machine extension as a JSON string + */ String publicSettingsAsJsonString(); - /** @return the provisioning state of this virtual machine scale set extension */ + /** + * Gets the provisioning state of this virtual machine scale set extension. + * + * @return the provisioning state of this virtual machine scale set extension + */ String provisioningState(); /** diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSku.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSku.java index 45e89c830b80e..58ea00703e99a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSku.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSku.java @@ -8,12 +8,24 @@ /** A type representing a SKU available for virtual machines in a scale set. */ @Fluent public interface VirtualMachineScaleSetSku { - /** @return the type of resource the SKU applies to */ + /** + * Gets the type of resource the SKU applies to. + * + * @return the type of resource the SKU applies to + */ String resourceType(); - /** @return the SKU type */ + /** + * Gets the SKU type. + * + * @return the SKU type + */ VirtualMachineScaleSetSkuTypes skuType(); - /** @return available scaling information */ + /** + * Gets available scaling information. + * + * @return available scaling information + */ VirtualMachineScaleSetSkuCapacity capacity(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuTypes.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuTypes.java index 8c22a4f84fd95..5b14446243b4d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuTypes.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuTypes.java @@ -324,7 +324,11 @@ public static VirtualMachineScaleSetSkuTypes fromSkuNameAndTier(String skuName, return fromSku(new Sku().withName(skuName).withTier(skuTier)); } - /** @return the SKU */ + /** + * Gets the SKU. + * + * @return the SKU + */ public Sku sku() { // Return copy of sku to guard VirtualMachineScaleSetSkuTypes from ending up with invalid // sku in case consumer changes the returned Sku instance. diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVM.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVM.java index e598a3be038af..4d29e72f4293f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVM.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVM.java @@ -25,124 +25,254 @@ public interface VirtualMachineScaleSetVM extends Resource, ChildResource, Refreshable, Updatable, HasInnerModel { - /** @return the instance ID assigned to this virtual machine instance */ + /** + * Gets the instance ID assigned to this virtual machine instance. + * + * @return the instance ID assigned to this virtual machine instance + */ String instanceId(); /** + * Gets the SKU of the virtual machine instance. + * * @return the SKU of the virtual machine instance, this will be SKU used while creating the parent virtual machine * scale set */ Sku sku(); - /** @return virtual machine instance size */ + /** + * Gets virtual machine instance size. + * + * @return virtual machine instance size + */ VirtualMachineSizeTypes size(); - /** @return true if the latest scale set model changes are applied to the virtual machine instance */ + /** + * Whether the latest scale set model changes are applied to the virtual machine instance. + * + * @return true if the latest scale set model changes are applied to the virtual machine instance + */ boolean isLatestScaleSetUpdateApplied(); - /** @return true if the operating system of the virtual machine instance is based on platform image */ + /** + * Whether the operating system of the virtual machine instance is based on platform image. + * + * @return true if the operating system of the virtual machine instance is based on platform image + */ boolean isOSBasedOnPlatformImage(); - /** @return true if the operating system of the virtual machine instance is based on custom image */ + /** + * Whether the operating system of the virtual machine instance is based on custom image. + * + * @return true if the operating system of the virtual machine instance is based on custom image + */ boolean isOSBasedOnCustomImage(); - /** @return true if the operating system of the virtual machine instance is based on stored image */ + /** + * Whether the operating system of the virtual machine instance is based on stored image. + * + * @return true if the operating system of the virtual machine instance is based on stored image + */ boolean isOSBasedOnStoredImage(); /** + * Gets reference to the platform image. + * * @return reference to the platform image that the virtual machine instance operating system is based on, null will * be returned if the operating system is based on custom image */ ImageReference platformImageReference(); /** + * Gets the platform image. + * * @return the platform image that the virtual machine instance operating system is based on, null be returned * otherwise */ VirtualMachineImage getOSPlatformImage(); /** + * Gets the custom image. + * * @return the custom image that the virtual machine instance operating system is based on, null be returned * otherwise */ VirtualMachineCustomImage getOSCustomImage(); /** + * Gets VHD URI of the custom image. + * * @return VHD URI of the custom image that the virtual machine instance operating system is based on, null will be * returned if the operating system is based on platform image */ String storedImageUnmanagedVhdUri(); - /** @return the name of the operating system disk */ + /** + * Gets the name of the operating system disk. + * + * @return the name of the operating system disk + */ String osDiskName(); - /** @return VHD URI to the operating system disk */ + /** + * Gets VHD URI to the operating system disk. + * + * @return VHD URI to the operating system disk + */ String osUnmanagedDiskVhdUri(); - /** @return resource ID of the managed disk backing OS disk */ + /** + * Gets resource ID of the managed disk backing OS disk. + * + * @return resource ID of the managed disk backing OS disk + */ String osDiskId(); - /** @return the unmanaged data disks associated with this virtual machine instance, indexed by LUN */ + /** + * Gets the unmanaged data disks associated with this virtual machine instance. + * + * @return the unmanaged data disks associated with this virtual machine instance, indexed by LUN + */ Map unmanagedDataDisks(); - /** @return the managed data disks associated with this virtual machine instance, indexed by LUN */ + /** + * Gets the managed data disks associated with this virtual machine instance. + * + * @return the managed data disks associated with this virtual machine instance, indexed by LUN + */ Map dataDisks(); - /** @return the caching type of the operating system disk */ + /** + * Gets the caching type of the operating system disk. + * + * @return the caching type of the operating system disk + */ CachingTypes osDiskCachingType(); - /** @return the size of the operating system disk */ + /** + * Gets the size of the operating system disk. + * + * @return the size of the operating system disk + */ int osDiskSizeInGB(); - /** @return the virtual machine instance computer name with the VM scale set prefix. */ + /** + * Gets the virtual machine instance computer name with the VM scale set prefix. + * + * @return the virtual machine instance computer name with the VM scale set prefix. + */ String computerName(); - /** @return the name of the admin user */ + /** + * Gets the name of the admin user. + * + * @return the name of the admin user + */ String administratorUserName(); - /** @return the operating system type */ + /** + * Gets the operating system type. + * + * @return the operating system type + */ OperatingSystemTypes osType(); - /** @return true if this is a Linux virtual machine and password based login is enabled, false otherwise */ + /** + * Whether this is a Linux virtual machine and password based login is enabled. + * + * @return true if this is a Linux virtual machine and password based login is enabled, false otherwise + */ boolean isLinuxPasswordAuthenticationEnabled(); - /** @return true if this is a Windows virtual machine and VM agent is provisioned, false otherwise */ + /** + * Whether this is a Windows virtual machine and VM agent is provisioned. + * + * @return true if this is a Windows virtual machine and VM agent is provisioned, false otherwise + */ boolean isWindowsVMAgentProvisioned(); - /** @return true if this is a Windows virtual machine and automatic update is turned on, false otherwise */ + /** + * Whether this is a Windows virtual machine and automatic update is turned on. + * + * @return true if this is a Windows virtual machine and automatic update is turned on, false otherwise + */ boolean isWindowsAutoUpdateEnabled(); - /** @return the time zone of the Windows virtual machine */ + /** + * Gets the time zone of the Windows virtual machine. + * + * @return the time zone of the Windows virtual machine + */ String windowsTimeZone(); - /** @return true if the boot diagnostic is enabled, false otherwise */ + /** + * Whether the boot diagnostic is enabled. + * + * @return true if the boot diagnostic is enabled, false otherwise + */ boolean bootDiagnosticEnabled(); - /** @return the URI to the storage account storing boot diagnostics log */ + /** + * Gets the URI to the storage account storing boot diagnostics log. + * + * @return the URI to the storage account storing boot diagnostics log + */ String bootDiagnosticStorageAccountUri(); - /** @return the resource ID of the availability set that this virtual machine instance belongs to */ + /** + * Gets the resource ID of the availability set that this virtual machine instance belongs to. + * + * @return the resource ID of the availability set that this virtual machine instance belongs to + */ String availabilitySetId(); - /** @return the list of resource ID of network interface associated with the virtual machine instance */ + /** + * Gets the list of resource ID of network interface associated with the virtual machine instance. + * + * @return the list of resource ID of network interface associated with the virtual machine instance + */ List networkInterfaceIds(); - /** @return resource ID of primary network interface associated with virtual machine instance */ + /** + * Gets resource ID of primary network interface associated with virtual machine instance. + * + * @return resource ID of primary network interface associated with virtual machine instance + */ String primaryNetworkInterfaceId(); - /** @return the extensions associated with the virtual machine instance, indexed by name */ + /** + * Gets the extensions associated with the virtual machine instance, indexed by name. + * + * @return the extensions associated with the virtual machine instance, indexed by name + */ Map extensions(); - /** @return the storage profile of the virtual machine instance */ + /** + * Gets the storage profile of the virtual machine instance. + * + * @return the storage profile of the virtual machine instance + */ StorageProfile storageProfile(); - /** @return the operating system profile of an virtual machine instance */ + /** + * Gets the operating system profile of an virtual machine instance. + * + * @return the operating system profile of an virtual machine instance + */ OSProfile osProfile(); - /** @return the diagnostics profile of the virtual machine instance */ + /** + * Gets the diagnostics profile of the virtual machine instance. + * + * @return the diagnostics profile of the virtual machine instance + */ DiagnosticsProfile diagnosticsProfile(); - /** @return true if managed disk is used for the virtual machine's disks (os, data) */ + /** + * Whether managed disk is used for the virtual machine's disks (os, data). + * + * @return true if managed disk is used for the virtual machine's disks (os, data) + */ boolean isManagedDiskEnabled(); /** Shuts down the virtual machine instance, move them to new node, and powers them back on. */ @@ -253,7 +383,11 @@ public interface VirtualMachineScaleSetVM */ Mono refreshInstanceViewAsync(); - /** @return the power state of the virtual machine instance */ + /** + * Gets the power state of the virtual machine instance. + * + * @return the power state of the virtual machine instance + */ PowerState powerState(); /** @@ -272,25 +406,47 @@ public interface VirtualMachineScaleSetVM */ Mono getNetworkInterfaceAsync(String name); - /** @return the network interfaces associated with this virtual machine instance. */ + /** + * Gets the network interfaces associated with this virtual machine instance. + * + * @return the network interfaces associated with this virtual machine instance. + */ PagedIterable listNetworkInterfaces(); - /** @return the network interfaces associated with this virtual machine instance. */ + /** + * Gets the network interfaces associated with this virtual machine instance. + * + * @return the network interfaces associated with this virtual machine instance. + */ PagedFlux listNetworkInterfacesAsync(); /** + * Gets applied model from the virtual machine. + * * @return Get specifies whether the model applied to the virtual machine is the model of the virtual machine scale * set or the customized model for the virtual machine. */ String modelDefinitionApplied(); - /** @return The specific protection policy for the vm. */ + /** + * Gets the specific protection policy for the vm. + * + * @return The specific protection policy for the vm. + */ VirtualMachineScaleSetVMProtectionPolicy protectionPolicy(); - /** @return The network profile config for the vm. */ + /** + * Gets the network profile config for the vm. + * + * @return The network profile config for the vm. + */ VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration(); - /** @return the time at which the Virtual Machine resource was created */ + /** + * Gets the time at which the Virtual Machine resource was created. + * + * @return the time at which the Virtual Machine resource was created + */ OffsetDateTime timeCreated(); /** The template for an update operation, containing all the settings that can be modified. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExpandType.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExpandType.java index b96b879dd4c3b..22a975faaf91c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExpandType.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExpandType.java @@ -15,6 +15,15 @@ public class VirtualMachineScaleSetVMExpandType extends ExpandableStringEnum values() { diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMInstanceExtension.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMInstanceExtension.java index d134139d8d2c4..b8d9f8490823f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMInstanceExtension.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMInstanceExtension.java @@ -10,6 +10,10 @@ @Fluent public interface VirtualMachineScaleSetVMInstanceExtension extends VirtualMachineExtensionBase, ChildResource { - /** @return the instance view of the scale set virtual machine extension */ + /** + * Gets the instance view of the scale set virtual machine extension. + * + * @return the instance view of the scale set virtual machine extension + */ VirtualMachineExtensionInstanceView instanceView(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSize.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSize.java index e18ca5ed2b5ac..b98f35f61cdcc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSize.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSize.java @@ -8,19 +8,39 @@ /** A type representing virtual machine size available for a subscription in a region. */ @Fluent public interface VirtualMachineSize extends HasName { - /** @return the number of cores supported by the VM size */ + /** + * Gets the number of cores supported by the VM size. + * + * @return the number of cores supported by the VM size + */ int numberOfCores(); - /** @return the OS disk size allowed by the VM size */ + /** + * Gets the OS disk size allowed by the VM size. + * + * @return the OS disk size allowed by the VM size + */ int osDiskSizeInMB(); - /** @return the resource disk size allowed by the VM size */ + /** + * Gets the resource disk size allowed by the VM size. + * + * @return the resource disk size allowed by the VM size + */ int resourceDiskSizeInMB(); - /** @return the memory size supported by the VM size */ + /** + * Gets the memory size supported by the VM size. + * + * @return the memory size supported by the VM size + */ int memoryInMB(); - /** @return the maximum number of data disks allowed by a VM size */ + /** + * Gets the maximum number of data disks allowed by a VM size. + * + * @return the maximum number of data disks allowed by a VM size + */ int maxDataDiskCount(); /** diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSku.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSku.java index 5e309ee9e758b..bace8c6722550 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSku.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSku.java @@ -9,15 +9,31 @@ /** Represents a virtual machine image SKU. */ @Fluent public interface VirtualMachineSku extends HasName { - /** @return the region where this virtual machine image offer SKU is available */ + /** + * Gets the region where this virtual machine image offer SKU is available. + * + * @return the region where this virtual machine image offer SKU is available + */ Region region(); - /** @return the publisher of this virtual machine image offer SKU */ + /** + * Gets the publisher of this virtual machine image offer SKU. + * + * @return the publisher of this virtual machine image offer SKU + */ VirtualMachinePublisher publisher(); - /** @return the virtual machine offer name that this SKU belongs to */ + /** + * Gets the virtual machine offer name that this SKU belongs to. + * + * @return the virtual machine offer name that this SKU belongs to + */ VirtualMachineOffer offer(); - /** @return virtual machine images in the SKU */ + /** + * Gets virtual machine images in the SKU. + * + * @return virtual machine images in the SKU + */ VirtualMachineImagesInSku images(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineUnmanagedDataDisk.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineUnmanagedDataDisk.java index 0e1f08aff0d29..4cf1d28d0f6e8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineUnmanagedDataDisk.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineUnmanagedDataDisk.java @@ -12,13 +12,25 @@ /** A native data disk of a virtual machine. */ @Fluent public interface VirtualMachineUnmanagedDataDisk extends HasInnerModel, ChildResource { - /** @return the size of this data disk in GB */ + /** + * Gets the size of this data disk in GB. + * + * @return the size of this data disk in GB + */ int size(); - /** @return the logical unit number assigned to this data disk */ + /** + * Gets the logical unit number assigned to this data disk. + * + * @return the logical unit number assigned to this data disk + */ int lun(); - /** @return URI to the virtual hard disk backing this data disk */ + /** + * Gets URI to the virtual hard disk backing this data disk. + * + * @return URI to the virtual hard disk backing this data disk + */ String vhdUri(); /** @@ -39,7 +51,11 @@ public interface VirtualMachineUnmanagedDataDisk extends HasInnerModel */ String sourceImageUri(); - /** @return the creation method used while creating this disk */ + /** + * Gets the creation method used while creating this disk. + * + * @return the creation method used while creating this disk + */ DiskCreateOptionTypes creationMethod(); /** Grouping of data disk definition stages applicable as part of a virtual machine creation. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachines.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachines.java index 1fb68dfab7372..7afcc89dfc72a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachines.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachines.java @@ -27,7 +27,11 @@ public interface VirtualMachines SupportsCreating, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation, SupportsBatchDeletion, HasManager { - /** @return available virtual machine sizes */ + /** + * Gets available virtual machine sizes. + * + * @return available virtual machine sizes + */ VirtualMachineSizes sizes(); /** From 246f05936897a61bae1ff75d60268525d6ecc66d Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Fri, 20 Dec 2024 13:41:25 +0800 Subject: [PATCH 3/8] Fix ci analyze exception. --- .../models/VirtualMachineScaleSet.java | 26 ++++++++++++++++++- .../VirtualMachineScaleSetSkuTypes.java | 6 ++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSet.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSet.java index e3601a26ff289..199490c5469c4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSet.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSet.java @@ -230,6 +230,8 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List int capacity(); /** + * Gets the virtual network associated with the primary network interfaces of the virtual machines in the scale set. + * * @return the virtual network associated with the primary network interfaces of the virtual machines in the scale * set. *

A primary internal load balancer associated with the primary network interfaces of the scale set virtual @@ -239,6 +241,9 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List Network getPrimaryNetwork() throws IOException; /** + * Gets the Internet-facing load balancer associated with the primary network interface of the virtual machines + * in the scale set. + * * @return the Internet-facing load balancer associated with the primary network interface of the virtual machines * in the scale set. * @throws IOException the IO exception @@ -246,6 +251,9 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List LoadBalancer getPrimaryInternetFacingLoadBalancer() throws IOException; /** + * Gets the Internet-facing load balancer's backends associated with the primary network interface of the virtual + * machines in the scale set. + * * @return the Internet-facing load balancer's backends associated with the primary network interface of the virtual * machines in the scale set * @throws IOException the IO exception @@ -253,6 +261,9 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List Map listPrimaryInternetFacingLoadBalancerBackends() throws IOException; /** + * Gets the Internet-facing load balancer's inbound NAT pool associated with the primary network interface of the + * virtual machines in the scale set. + * * @return the Internet-facing load balancer's inbound NAT pool associated with the primary network interface of the * virtual machines in the scale set * @throws IOException the IO exception @@ -260,6 +271,9 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List Map listPrimaryInternetFacingLoadBalancerInboundNatPools() throws IOException; /** + * Gets the internal load balancer associated with the primary network interface of the virtual machines in the + * scale set. + * * @return the internal load balancer associated with the primary network interface of the virtual machines in the * scale set * @throws IOException the IO exception @@ -267,6 +281,9 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List LoadBalancer getPrimaryInternalLoadBalancer() throws IOException; /** + * Gets the internal load balancer's backends associated with the primary network interface of the virtual + * machines in the scale set. + * * @return the internal load balancer's backends associated with the primary network interface of the virtual * machines in the scale set * @throws IOException the IO exception @@ -274,6 +291,9 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List Map listPrimaryInternalLoadBalancerBackends() throws IOException; /** + * Gets the inbound NAT pools of the internal load balancer associated with the primary network interface of the + * virtual machines in the scale set. + * * @return the inbound NAT pools of the internal load balancer associated with the primary network interface of the * virtual machines in the scale set, if any. * @throws IOException the IO exception @@ -1138,7 +1158,11 @@ interface WithLinuxCreateManagedOrUnmanaged extends WithManagedCreate { */ WithLinuxCreateManagedOrUnmanaged withSsh(String publicKey); - /** @return the next stage of a unmanaged disk based virtual machine scale set definition */ + /** + * Specifies an unmanaged disk to be attached to the virtual machine. + * + * @return the next stage of an unmanaged disk based virtual machine scale set definition + */ WithUnmanagedCreate withUnmanagedDisks(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuTypes.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuTypes.java index 5b14446243b4d..84b774d9f6359 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuTypes.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuTypes.java @@ -252,7 +252,11 @@ public class VirtualMachineScaleSetSkuTypes { /** The string value of the SKU. */ private final String value; - /** @return predefined virtual machine scale set SKU types */ + /** + * Gets predefined virtual machine scale set SKU types. + * + * @return predefined virtual machine scale set SKU types + */ public static VirtualMachineScaleSetSkuTypes[] values() { Collection valuesCollection = VALUES_BY_NAME.values(); return valuesCollection.toArray(new VirtualMachineScaleSetSkuTypes[valuesCollection.size()]); From 01fa7453b08598abef827dfc7890056f9077e985 Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Fri, 20 Dec 2024 14:14:59 +0800 Subject: [PATCH 4/8] Fix ci analyze exception. --- .../compute/models/VirtualMachineDiskOptions.java | 5 +++++ .../compute/models/VirtualMachineScaleSet.java | 3 +++ 2 files changed, 8 insertions(+) diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java index 73ef4d5738474..91bea1d158b4e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java @@ -15,6 +15,11 @@ public final class VirtualMachineDiskOptions { private DeleteOptions deleteOptions; private Boolean writeAcceleratorEnabled; + /** + * Creates a new instance of VirtualMachineDiskOptions. + */ + public VirtualMachineDiskOptions() {} + // DiskEncryptionSetParameters instance without ID means do not configure. // If disk is already encrypted with CMK, it remains so when attached. private DiskEncryptionSetParameters diskEncryptionSetOptions; diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSet.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSet.java index 199490c5469c4..62bf8d7f04148 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSet.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSet.java @@ -301,6 +301,9 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List Map listPrimaryInternalLoadBalancerInboundNatPools() throws IOException; /** + * Gets the list of IDs of the public IP addresses associated with the primary Internet-facing load balancer of + * the scale set + * * @return the list of IDs of the public IP addresses associated with the primary Internet-facing load balancer of * the scale set * @throws IOException the IO exception From f30bfd033108b0bae888127f4021f2be891ee8e7 Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Fri, 20 Dec 2024 14:32:51 +0800 Subject: [PATCH 5/8] Fix ci analyze exception. --- .../compute/models/VirtualMachineDiskOptions.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java index 91bea1d158b4e..2f1d4e3e7bb11 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java @@ -18,7 +18,8 @@ public final class VirtualMachineDiskOptions { /** * Creates a new instance of VirtualMachineDiskOptions. */ - public VirtualMachineDiskOptions() {} + public VirtualMachineDiskOptions() { + } // DiskEncryptionSetParameters instance without ID means do not configure. // If disk is already encrypted with CMK, it remains so when attached. From 68694ef61ed373cc60dd24b9ea46f77420201faf Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Fri, 20 Dec 2024 15:58:26 +0800 Subject: [PATCH 6/8] Fix comments. --- .../java/com/azure/resourcemanager/compute/ComputeManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java index eec7c3162a4db..4a18cb8bfe0ea 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/ComputeManager.java @@ -188,7 +188,7 @@ public VirtualMachines virtualMachines() { } /** - * Gest the virtual machine image resource management API entry point. + * Gets the virtual machine image resource management API entry point. * * @return the virtual machine image resource management API entry point */ From 6d0816182ab673e2c8f296b4c2f6c0ba843f2867 Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Fri, 20 Dec 2024 16:30:45 +0800 Subject: [PATCH 7/8] Fix ci analyze exception. --- .../compute/models/CreationSource.java | 2 +- .../resourcemanager/compute/models/Disk.java | 6 +++--- .../compute/models/DiskEncryptionSet.java | 1 - .../compute/models/GalleryImage.java | 8 ++++---- .../compute/models/GalleryImageVersion.java | 4 ++-- .../compute/models/Snapshot.java | 4 ++-- .../compute/models/VirtualMachine.java | 20 +++++++++---------- .../models/VirtualMachineCustomImage.java | 4 ++-- .../models/VirtualMachineDataDisk.java | 2 +- .../models/VirtualMachineDiskOptions.java | 4 ++-- .../models/VirtualMachineExtensionBase.java | 2 +- .../models/VirtualMachineExtensionImage.java | 4 ++-- .../models/VirtualMachineScaleSet.java | 18 ++++++++--------- .../VirtualMachineScaleSetExtension.java | 2 +- .../models/VirtualMachineScaleSetVM.java | 18 ++++++++--------- 15 files changed, 49 insertions(+), 50 deletions(-) diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CreationSource.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CreationSource.java index e1b068664b7f5..3ff5e46f120f1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CreationSource.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CreationSource.java @@ -57,7 +57,7 @@ public CreationSourceType type() { } /** - * Gets ID of the resource. + * Gets ID of the source. * * @return ID of the source */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java index af9f9d559f38e..d625dc4ea8fae 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java @@ -36,7 +36,7 @@ public interface Disk extends GroupableResource, Refr DiskCreateOption creationMethod(); /** - * Whether the disk is attached to a virtual machine. + * Checks whether the disk is attached to a virtual machine. * * @return true if the disk is attached to a virtual machine, otherwise false */ @@ -126,7 +126,7 @@ public interface Disk extends GroupableResource, Refr Mono revokeAccessAsync(); /** - * Whether the OS on a disk supports hibernation. + * Checks whether the OS on a disk supports hibernation. * * @return whether the OS on a disk supports hibernation. */ @@ -147,7 +147,7 @@ public interface Disk extends GroupableResource, Refr HyperVGeneration hyperVGeneration(); /** - * Whether the disk can be accessed from public network. + * Checks whether the disk can be accessed from public network. * * @return whether the disk can be accessed from public network. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSet.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSet.java index 89fdae68ddfef..f925169970fbf 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSet.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSet.java @@ -44,7 +44,6 @@ public interface DiskEncryptionSet extends GroupableResource, Indexabl OffsetDateTime endOfLifeDate(); /** - * Gets the image eula. + * Gets the image EULA. * - * @return the image eula. + * @return the image EULA. */ String eula(); @@ -120,9 +120,9 @@ public interface GalleryImage extends HasInnerModel, Indexabl String provisioningState(); /** - * Gets the purchasePlan of the image. + * Gets the purchase plan of the image. * - * @return the purchasePlan of the image. + * @return the purchase plan of the image. */ ImagePurchasePlan purchasePlan(); diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersion.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersion.java index d96bbc30bafee..1b10163448650 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersion.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersion.java @@ -44,7 +44,7 @@ public interface GalleryImageVersion extends HasInnerModel runShellScriptAsync(List scriptLines, // /** - * Whether managed disks are used for the virtual machine's disks (OS, data). + * Checks whether managed disks are used for the virtual machine's disks (OS, data). * * @return true if managed disks are used for the virtual machine's disks (OS, data) */ @@ -311,7 +311,7 @@ Mono runShellScriptAsync(List scriptLines, StorageAccountTypes osDiskStorageAccountType(); /** - * GEts resource ID of the managed disk backing the OS disk. + * Gets resource ID of the managed disk backing the OS disk. * * @return resource ID of the managed disk backing the OS disk */ @@ -339,14 +339,14 @@ Mono runShellScriptAsync(List scriptLines, boolean isOsDiskWriteAcceleratorEnabled(); /** - * Whether the os disk is ephemeral. + * Checks whether the os disk is ephemeral. * * @return whether the os disk is ephemeral */ boolean isOSDiskEphemeral(); /** - * Whether encryption at host. + * Checks whether encryption at host. * * @return whether encryption at host */ @@ -492,7 +492,7 @@ Mono runShellScriptAsync(List scriptLines, Set availabilityZones(); /** - * Whether boot diagnostics is enabled for the virtual machine. + * Checks whether boot diagnostics is enabled for the virtual machine. * * @return true if boot diagnostics is enabled for the virtual machine */ @@ -506,7 +506,7 @@ Mono runShellScriptAsync(List scriptLines, String bootDiagnosticsStorageUri(); /** - * Whether Managed Service Identity is enabled for the virtual machine. + * Checks whether Managed Service Identity is enabled for the virtual machine. * * @return true if Managed Service Identity is enabled for the virtual machine */ @@ -566,14 +566,14 @@ Mono runShellScriptAsync(List scriptLines, BillingProfile billingProfile(); /** - * Whether hibernation feature is enabled on the virtual machine. + * Checks whether hibernation feature is enabled on the virtual machine. * * @return true if hibernation feature is enabled on the virtual machine. */ boolean isHibernationEnabled(); /** - * Whether ultra SSD feature is enabled. + * Checks whether ultra SSD feature is enabled. * * @return true if ultra SSD feature is enabled on the virtual machine. */ @@ -587,14 +587,14 @@ Mono runShellScriptAsync(List scriptLines, SecurityTypes securityType(); /** - * Whether secure boot is enabled on the virtual machine + * Checks whether secure boot is enabled on the virtual machine * * @return whether secure boot is enabled on the virtual machine */ boolean isSecureBootEnabled(); /** - * Whether vTPM is enabled on the virtual machine. + * Checks whether vTPM is enabled on the virtual machine. * * @return whether vTPM is enabled on the virtual machine */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineCustomImage.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineCustomImage.java index 50ed10c74f8d7..308418ffb9d7a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineCustomImage.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineCustomImage.java @@ -20,7 +20,7 @@ public interface VirtualMachineCustomImage extends GroupableResource, Refreshable { /** - * Whether this image was created by capturing a virtual machine. + * Checks whether this image was created by capturing a virtual machine. * * @return true if this image was created by capturing a virtual machine */ @@ -34,7 +34,7 @@ public interface VirtualMachineCustomImage HyperVGenerationTypes hyperVGeneration(); /** - * Gets ID of the virtual machine. + * Gets ID of the virtual machine if this image was created by capturing that virtual machine. * * @return ID of the virtual machine if this image was created by capturing that virtual machine */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java index df0e9abef2e89..59f4dc5d4285f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java @@ -61,7 +61,7 @@ public interface VirtualMachineDataDisk extends HasInnerModel, HasName String diskEncryptionSetId(); /** - * Whether the write accelerator is enabled. + * Checks whether the write accelerator is enabled. * * @return whether the write accelerator is enabled */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java index 2f1d4e3e7bb11..e8440a953de12 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java @@ -53,7 +53,7 @@ public DeleteOptions deleteOptions() { } /** - * Whether the write accelerator is enabled. {@literal null} if no change. + * Checks whether the write accelerator is enabled. {@literal null} if no change. * * @return whether the write accelerator is enabled */ @@ -62,7 +62,7 @@ public Boolean writeAcceleratorEnabled() { } /** - * Whether disk encryption set is configured. + * Checks whether disk encryption set is configured. * * @return whether disk encryption set is configured, * either as the ID of disk encryption set, or as {@code null} to override default configuration. diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionBase.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionBase.java index 277a8518658bb..02d00c10c0847 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionBase.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionBase.java @@ -33,7 +33,7 @@ public interface VirtualMachineExtensionBase extends HasInnerModel runShellScriptInVMInstanceAsync(String vmId, List String osDiskName(); /** - * Whether the instance OS disk is ephemeral. + * Checks whether the instance OS disk is ephemeral. * * @return whether the instance OS disk is ephemeral */ @@ -209,7 +209,7 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List UpgradeMode upgradeModel(); /** - * Whether over provision is enabled for the virtual machines. + * Checks whether over provision is enabled for the virtual machines. * * @return true if over provision is enabled for the virtual machines, false otherwise */ @@ -403,14 +403,14 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List listNetworkInterfacesByInstanceIdAsync(String virtualMachineInstanceId); /** - * Whether managed disk is used for the virtual machine scale set's disks (os, data). + * Checks whether managed disk is used for the virtual machine scale set's disks (os, data). * * @return true if managed disk is used for the virtual machine scale set's disks (os, data) */ boolean isManagedDiskEnabled(); /** - * Whether Managed Service Identity is enabled for the virtual machine scale set. + * Checks whether Managed Service Identity is enabled for the virtual machine scale set. * * @return true if Managed Service Identity is enabled for the virtual machine scale set */ @@ -458,7 +458,7 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List Set availabilityZones(); /** - * Whether boot diagnostics is enabled for the virtual machine scale set. + * Checks whether boot diagnostics is enabled for the virtual machine scale set. * * @return true if boot diagnostics is enabled for the virtual machine scale set. */ @@ -487,14 +487,14 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List VirtualMachineScaleSetPublicIpAddressConfiguration virtualMachinePublicIpConfig(); /** - * Whether ip forwarding is enabled for the virtual machine scale set. + * Checks whether ip forwarding is enabled for the virtual machine scale set. * * @return true if ip forwarding is enabled for the virtual machine scale set. */ boolean isIpForwardingEnabled(); /** - * Whether accelerated networking is enabled for the virtual machine scale set. + * Checks whether accelerated networking is enabled for the virtual machine scale set. * * @return true if accelerated networking is enabled for the virtual machine scale set. */ @@ -508,7 +508,7 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List String networkSecurityGroupId(); /** - * Whether single placement group is enabled for the virtual machine scale set. + * Checks whether single placement group is enabled for the virtual machine scale set. * * @return true if single placement group is enabled for the virtual machine scale set. */ @@ -529,7 +529,7 @@ Mono runShellScriptInVMInstanceAsync(String vmId, List List applicationSecurityGroupIds(); /** - * Whether Overprovision is enabled. + * Checks whether Overprovision is enabled. * * @return When Overprovision is enabled, extensions are launched only on the requested number of VMs which are * finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtension.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtension.java index 65d29e61736d0..f6a55e0b95a8b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtension.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtension.java @@ -38,7 +38,7 @@ public interface VirtualMachineScaleSetExtension String versionName(); /** - * Whether this extension is configured to upgrade automatically when a new minor version of the extension + * Checks whether this extension is configured to upgrade automatically when a new minor version of the extension * image that this extension based on is published. * * @return true if this extension is configured to upgrade automatically when a new minor version of the extension diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVM.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVM.java index 4d29e72f4293f..c6d080162a09f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVM.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVM.java @@ -48,28 +48,28 @@ public interface VirtualMachineScaleSetVM VirtualMachineSizeTypes size(); /** - * Whether the latest scale set model changes are applied to the virtual machine instance. + * Checks whether the latest scale set model changes are applied to the virtual machine instance. * * @return true if the latest scale set model changes are applied to the virtual machine instance */ boolean isLatestScaleSetUpdateApplied(); /** - * Whether the operating system of the virtual machine instance is based on platform image. + * Checks whether the operating system of the virtual machine instance is based on platform image. * * @return true if the operating system of the virtual machine instance is based on platform image */ boolean isOSBasedOnPlatformImage(); /** - * Whether the operating system of the virtual machine instance is based on custom image. + * Checks whether the operating system of the virtual machine instance is based on custom image. * * @return true if the operating system of the virtual machine instance is based on custom image */ boolean isOSBasedOnCustomImage(); /** - * Whether the operating system of the virtual machine instance is based on stored image. + * Checks whether the operating system of the virtual machine instance is based on stored image. * * @return true if the operating system of the virtual machine instance is based on stored image */ @@ -178,21 +178,21 @@ public interface VirtualMachineScaleSetVM OperatingSystemTypes osType(); /** - * Whether this is a Linux virtual machine and password based login is enabled. + * Checks whether this is a Linux virtual machine and password based login is enabled. * * @return true if this is a Linux virtual machine and password based login is enabled, false otherwise */ boolean isLinuxPasswordAuthenticationEnabled(); /** - * Whether this is a Windows virtual machine and VM agent is provisioned. + * Checks whether this is a Windows virtual machine and VM agent is provisioned. * * @return true if this is a Windows virtual machine and VM agent is provisioned, false otherwise */ boolean isWindowsVMAgentProvisioned(); /** - * Whether this is a Windows virtual machine and automatic update is turned on. + * Checks whether this is a Windows virtual machine and automatic update is turned on. * * @return true if this is a Windows virtual machine and automatic update is turned on, false otherwise */ @@ -206,7 +206,7 @@ public interface VirtualMachineScaleSetVM String windowsTimeZone(); /** - * Whether the boot diagnostic is enabled. + * Checks whether the boot diagnostic is enabled. * * @return true if the boot diagnostic is enabled, false otherwise */ @@ -269,7 +269,7 @@ public interface VirtualMachineScaleSetVM DiagnosticsProfile diagnosticsProfile(); /** - * Whether managed disk is used for the virtual machine's disks (os, data). + * Checks whether managed disk is used for the virtual machine's disks (os, data). * * @return true if managed disk is used for the virtual machine's disks (os, data) */ From 25708467caa912ea75c4cdbfe2e9e1f06b7bee25 Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Fri, 20 Dec 2024 16:38:50 +0800 Subject: [PATCH 8/8] Fix ci analyze exception. --- .../java/com/azure/resourcemanager/compute/models/Disk.java | 2 +- .../resourcemanager/compute/models/VirtualMachineDataDisk.java | 2 +- .../compute/models/VirtualMachineDiskOptions.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java index d625dc4ea8fae..e13e6724eaaac 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/Disk.java @@ -147,7 +147,7 @@ public interface Disk extends GroupableResource, Refr HyperVGeneration hyperVGeneration(); /** - * Checks whether the disk can be accessed from public network. + * Whether the disk can be accessed from public network. * * @return whether the disk can be accessed from public network. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java index 59f4dc5d4285f..d7801e4d51417 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDataDisk.java @@ -61,7 +61,7 @@ public interface VirtualMachineDataDisk extends HasInnerModel, HasName String diskEncryptionSetId(); /** - * Checks whether the write accelerator is enabled. + * Gets whether the write accelerator is enabled. * * @return whether the write accelerator is enabled */ diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java index e8440a953de12..2bab1ab34b04e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskOptions.java @@ -53,7 +53,7 @@ public DeleteOptions deleteOptions() { } /** - * Checks whether the write accelerator is enabled. {@literal null} if no change. + * Gets whether the write accelerator is enabled. {@literal null} if no change. * * @return whether the write accelerator is enabled */