Search in sources :

Example 1 with SqlServerConfig

use of com.microsoft.azure.toolkit.lib.sqlserver.SqlServerConfig in project azure-tools-for-java by Microsoft.

the class SqlServerCreationDialog method createUIComponents.

private void createUIComponents() {
    List<Subscription> selectedSubscriptions = Azure.az(AzureAccount.class).account().getSelectedSubscriptions();
    Preconditions.checkArgument(CollectionUtils.isNotEmpty(selectedSubscriptions), "There is no subscription in your account.");
    SqlServerConfig config = SqlServerConfig.getDefaultConfig(selectedSubscriptions.get(0));
    basic = new SqlServerCreationBasicPanel(config);
    advanced = new SqlServerCreationAdvancedPanel(config);
}
Also used : SqlServerConfig(com.microsoft.azure.toolkit.lib.sqlserver.SqlServerConfig) Subscription(com.microsoft.azure.toolkit.lib.common.model.Subscription)

Example 2 with SqlServerConfig

use of com.microsoft.azure.toolkit.lib.sqlserver.SqlServerConfig in project azure-tools-for-java by microsoft.

the class SqlServerCreationDialog method createUIComponents.

private void createUIComponents() {
    List<Subscription> selectedSubscriptions = Azure.az(AzureAccount.class).account().getSelectedSubscriptions();
    Preconditions.checkArgument(CollectionUtils.isNotEmpty(selectedSubscriptions), "There is no subscription in your account.");
    SqlServerConfig config = SqlServerConfig.getDefaultConfig(selectedSubscriptions.get(0));
    basic = new SqlServerCreationBasicPanel(config);
    advanced = new SqlServerCreationAdvancedPanel(config);
}
Also used : SqlServerConfig(com.microsoft.azure.toolkit.lib.sqlserver.SqlServerConfig) Subscription(com.microsoft.azure.toolkit.lib.common.model.Subscription)

Aggregations

Subscription (com.microsoft.azure.toolkit.lib.common.model.Subscription)2 SqlServerConfig (com.microsoft.azure.toolkit.lib.sqlserver.SqlServerConfig)2