azure-libraries-for-java/notes/prepare-for-1.0.0-beta4.md

9.0 KiB

Prepare for Azure Management Libraries for Java 1.0.0-beta4#

Steps to migrate code that uses Azure Management Libraries for Java from beta 3 to beta 4 …

If this note missed any breaking changes, please open a pull request.

Change Method Names

From To Ref
VirtualMachine.disableVmAgent() VirtualMachine.withoutVmAgent() #1249
VirtualMachine.disableAutoUpdate() VirtualMachine.withoutAutoUpdate() #1249
VirtualMachine.withRootUserName() VirtualMachine.withRootUsername() #1249
VirtualMachine.withAdminUserName() VirtualMachine.withAdminUsername() #1249
VirtualMachine.withPassword() VirtualMachine.withRootPassword() #1249
VirtualMachine.withPassword() VirtualMachine.withAdminPassword() #1249
VirtualMachineScaleSet.withPrimaryInternetFacingLoadBalancer() VirtualMachineScaleSet.withExistingPrimaryInternetFacingLoadBalancer() #1266
VirtualMachineScaleSet.withPrimaryInternalLoadBalancer() VirtualMachineScaleSet.withExistingPrimaryInternalLoadBalancer() #1266
VirtualMachineScaleSet.withAdminUserName() VirtualMachineScaleSet.withAdminUsername() #1266
VirtualMachineScaleSet.withRootUserName() VirtualMachineScaleSet.withRootUsername() #1266
VirtualMachineScaleSet.withPassword() Windows:
VirtualMachineScaleSet.withAdminPassword()
Linux:
VirtualMachineScaleSet.withRootPassword()
#1266
LoadBalancer.Frontend() LoadBalancer.LoadBalancerFrontend() #1178
LoadBalancer.Probe() LoadBalancer.LoadBalancerProbe() #1178
LoadBalancer.TcpProbe() LoadBalancer.LoadBalancerTcpProbe() #1178
LoadBalancer.HttpProbe() LoadBalancer.LoadBalancerHttpProbe() #1178
LoadBalancer.Backend() LoadBalancer.LoadBalancerBackend() #1178
LoadBalancer.withExistingSubnet() LoadBalancer.withFrontendSubnet() #1245
ResourceGroups.delete(String id) ResourceGroups().deleteByName(String name) #1236
{ResourceCollection}.delete(String id)
e.g.
VirtualMachines.delete(String id)
Networks.delete(String id)
StorageAccounts.delete(String id)
...
{ResourceCollection}.deleteById(String id)

VirtualMachines.deleteById(String id)
Networks.deleteById(String id)
StorageAccounts.deleteById(String id)

#1236
{ResourceCollection}.delete(String groupName, String name)
e.g.
VirtualMachines.delete(String groupName, String name)
Networks.delete(String groupName, String name)
StorageAccounts.delete(String groupName, String name)
...
{ResourceCollection}.deleteByGroup(String groupName, String name)

VirtualMachines.deleteByGroup(String groupName, String name)
Networks.deleteByGroup(String groupName, String name)
StorageAccounts.deleteByGroup(String groupName, String name)

#1236

Change interface Names

From To Ref
com.microsoft.azure.management.compute.WithAdminUserName com.microsoft.azure.management.compute.WithWindowsAdminUsername #1249
com.microsoft.azure.management.compute.WithRootUserName com.microsoft.azure.management.compute.WithLinuxRootUsername #1249
com.microsoft.azure.management.compute.WithPassword Windows:
com.microsoft.azure.management.compute.WithWindowsAdminPassword
Linux:
com.microsoft.azure.management.compute.WithLinuxRootPasswordOrPublicKey
#1249
com.microsoft.azure.management.network.HttpProbe com.microsoft.azure.management.network.LoadBalancerHttpProbe #1178
com.microsoft.azure.management.network.TcpProbe com.microsoft.azure.management.network.LoadBalancerTcpProbe #1178
com.microsoft.azure.management.network.Probe com.microsoft.azure.management.network.LoadBalancerProbe #1178
com.microsoft.azure.management.network.PrivateFrontend com.microsoft.azure.management.network.LoadBalancerPrivateFrontend #1245
com.microsoft.azure.management.network.PublicFrontend com.microsoft.azure.management.network.LoadBalancerPublicFrontend #1245
com.microsoft.azure.management.network.InboundNatRule com.microsoft.azure.management.network.LoadBalancerInboundNatRule #1245
com.microsoft.azure.management.network.InboundNatPool com.microsoft.azure.management.network.LoadBalancerInboundNatPool #1245