Class AzureAccount

  • All Implemented Interfaces:
    com.microsoft.azure.toolkit.lib.account.IAzureAccount, com.microsoft.azure.toolkit.lib.AzureService, com.microsoft.azure.toolkit.lib.common.entity.IAzureModule

    public class AzureAccount
    extends Object
    implements com.microsoft.azure.toolkit.lib.account.IAzureAccount
    • Field Detail

    • Constructor Detail

      • AzureAccount

        public AzureAccount()
    • Method Detail

      • logout

        public void logout()
      • loginAsync

        public reactor.core.publisher.Mono<Account> loginAsync​(@Nonnull
                                                               AuthType type,
                                                               boolean enablePersistence)
      • loginAsync

        public reactor.core.publisher.Mono<Account> loginAsync​(Account targetAccount,
                                                               boolean enablePersistence)
      • listRegions

        @Cacheable(cacheName="Regions",
                   key="$subscriptionId")
        public List<com.microsoft.azure.toolkit.lib.common.model.Region> listRegions​(String subscriptionId)
        see doc for: az account list-locations -o table
        Specified by:
        listRegions in interface com.microsoft.azure.toolkit.lib.account.IAzureAccount
      • listRegions

        public List<com.microsoft.azure.toolkit.lib.common.model.Region> listRegions()
        see doc for: az account list-locations -o table
      • toRegion

        private static com.microsoft.azure.toolkit.lib.common.model.Region toRegion​(com.azure.core.management.Region region)
      • finishLogin

        private AzureAccount finishLogin​(reactor.core.publisher.Mono<Account> mono)
      • buildAccountMap

        private static Map<AuthType,​java.util.function.Supplier<Account>> buildAccountMap()
      • getSubscription

        @Cacheable(cacheName="Subscription",
                   key="$subscriptionId")
        private com.azure.resourcemanager.resources.models.Subscription getSubscription​(String subscriptionId)