Skip to content

Latest commit

 

History

History
148 lines (133 loc) · 5.16 KB

prepare-for-1.0.0-beta3.md

File metadata and controls

148 lines (133 loc) · 5.16 KB

Prepare for Azure Management Libraries for Java 1.0.0-beta3#

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

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

Replace Import Statement

Replace With Ref
import com.microsoft.azure.Azure import com.microsoft.azure.management.Azure #1144

Change Method Names

From To Ref
Subnet.networkSecurityGroup() Subnet.getNetworkSecurityGroup() #1140
Network.dsnServerIPs() Network.dnsServerIps() #1140
NicIpConfiguration.publicIpAddress() NicIpConfiguration.getPublicIpAddress() #1083
NicIpConfiguration.network() NicIpConfiguration.getNetwork() #1083
NetworkInterface.networkSecurityGroup() NetworkInterface.getNetworkSecurityGroup() #1065
NicIpConfiguration.privateIp() NicIpConfiguration.privateIpAddress() #1055
VirtualMachine.primaryPublicIpAddress() VirtualMachine.getPrimaryPublicIpAddress() #1090
StorageAccount.refreshKeys() StorageAccount.getKeys() #1090
NetworkInterface.primaryNetwork() NetworkInterface.getPrimaryNetwork() #1090

Change Receiving Variable Type

From To For Method Ref
List Map NetworkInterface.ipConfigurations() #1055
List Map VirtualMachine.resources() #1045
List Map NetworkSecurityGroup.securityRules() #970
List Map NetworkSecurityGroup.defaultSecurityRules() #970

Drop Method Usage or Use Alternate

There are alternate ways to achieve the same thing:

Drop Method Use Alternate Ref
NetworkInterface.primarySubnetId() NetworkInterface.primaryIpConfiguration().subnetId() #1090
NicIpConfiguration.subnetId() Use NicIpConfiguration.subnetName() for the name of the subnet, and .networkId() for its parent virtual network ID. Or simply call .getNetwork() for the actual associated Network instance and look up the subnet using Network.subnets().get(subnetName) #1090
NetworkInterface.primaryPublicIpAddress() NetworkInterface.primaryIpConfiguration().getPublicIpAddress() #1090
StorageAccount.keys() StorageAccount.getKeys() #1090

Add Property

Add another property graphURL=https://graph.windows.net/ to the experimental Azure Auth file #1107.