use of com.microsoft.azure.toolkit.lib.springcloud.AzureSpringCloud in project azure-tools-for-java by Microsoft.
the class SpringCloudClusterComboBox method loadItems.
@NotNull
@Override
@AzureOperation(name = "springcloud|cluster.list.subscription", params = { "this.subscription.getId()" }, type = AzureOperation.Type.SERVICE)
protected List<? extends SpringCloudCluster> loadItems() throws Exception {
if (Objects.nonNull(this.subscription)) {
final String sid = this.subscription.getId();
final AzureSpringCloud az = Azure.az(AzureSpringCloud.class).subscription(sid);
return az.clusters();
}
return Collections.emptyList();
}
use of com.microsoft.azure.toolkit.lib.springcloud.AzureSpringCloud in project azure-tools-for-java by Microsoft.
the class SpringCloudExplorerContributor method getModuleNode.
@Override
public Node<?> getModuleNode() {
final AzureActionManager am = AzureActionManager.getInstance();
final IAzureMessager messager = AzureMessager.getDefaultMessager();
final AzureSpringCloud service = az(AzureSpringCloud.class);
return new Node<>(service).view(new AzureServiceLabelView<>(service, "Spring Cloud", ICON)).actions(SpringCloudActionsContributor.SERVICE_ACTIONS).addChildren(AzureSpringCloud::clusters, (cluster, ascNode) -> new Node<>(cluster).view(new AzureResourceLabelView<>(cluster)).actions(SpringCloudActionsContributor.CLUSTER_ACTIONS).addChildren(SpringCloudCluster::apps, (app, clusterNode) -> new Node<>(app).view(new AzureResourceLabelView<>(app)).actions(SpringCloudActionsContributor.APP_ACTIONS)));
}
Aggregations