@Override public Map<String, String> toProperties() { final Map<String, String> properties = new HashMap<>(); properties.put(AppInsightsConstants.SubscriptionId, this.subscriptionId); properties.put(AppInsightsConstants.Region, this.storageAccount.regionName()); return properties; }
@Override public Map<String, String> toProperties() { final Map<String, String> properties = new HashMap<>(); properties.put(AppInsightsConstants.SubscriptionId, ResourceId.fromString(this.storageAccount.id()).subscriptionId()); properties.put(AppInsightsConstants.Region, this.storageAccount.regionName()); return properties; }
@Override public Map<String, String> toProperties() { final Map<String, String> properties = new HashMap<>(); properties.put(AppInsightsConstants.SubscriptionId, ResourceId.fromString(this.storageAccount.id()).subscriptionId()); properties.put(AppInsightsConstants.Region, this.storageAccount.regionName()); return properties; }
@Override public Map<String, String> toProperties() { final Map<String, String> properties = new HashMap<>(); properties.put(AppInsightsConstants.SubscriptionId, ResourceId.fromString(this.storageAccount.id()).subscriptionId()); properties.put(AppInsightsConstants.Region, this.storageAccount.regionName()); return properties; }
@Override public String getToolTip() { return storageAccount.name() + "\n" + storageAccount.regionName() + "<br>" + storageAccount.resourceGroupName(); }
public static List<AzureDockerStorageAccount> getStorageAccounts(Azure azureClient) { List<AzureDockerStorageAccount> result = new ArrayList<>(); if (azureClient != null) { for (StorageAccount storageAccount : azureClient.storageAccounts().list()) { AzureDockerStorageAccount dockerStorageAccount = new AzureDockerStorageAccount(); dockerStorageAccount.name = storageAccount.name(); dockerStorageAccount.region = storageAccount.regionName(); dockerStorageAccount.resourceGroup = storageAccount.resourceGroupName(); dockerStorageAccount.sid = azureClient.subscriptionId(); dockerStorageAccount.skuType = storageAccount.sku().name().name(); result.add(dockerStorageAccount); } } return result; }