Class KubernetesCluster

  • All Implemented Interfaces:
    com.microsoft.azure.toolkit.lib.common.model.AzResource, com.microsoft.azure.toolkit.lib.common.model.AzResourceBase, com.microsoft.azure.toolkit.lib.common.model.Deletable, com.microsoft.azure.toolkit.lib.common.model.Refreshable, com.microsoft.azure.toolkit.lib.common.model.Startable
    Direct Known Subclasses:
    KubernetesClusterDraft

    public class KubernetesCluster
    extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<KubernetesCluster,​ContainerServiceSubscription,​com.azure.resourcemanager.containerservice.models.KubernetesCluster>
    implements com.microsoft.azure.toolkit.lib.common.model.Startable, com.microsoft.azure.toolkit.lib.common.model.Deletable
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource

        com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<T extends com.microsoft.azure.toolkit.lib.common.model.AzResource,​R extends Object>, com.microsoft.azure.toolkit.lib.common.model.AzResource.None, com.microsoft.azure.toolkit.lib.common.model.AzResource.Status
      • Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceBase

        com.microsoft.azure.toolkit.lib.common.model.AzResourceBase.FormalStatus
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private KubernetesClusterAgentPoolModule agentPoolModule  
      • Fields inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource

        CACHE_LIFETIME, NONE, RESOURCE_GROUP_PLACEHOLDER
    • Method Detail

      • getRegion

        @Nullable
        public com.microsoft.azure.toolkit.lib.common.model.Region getRegion()
      • getSubModules

        @Nonnull
        public List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,​?,​?>> getSubModules()
        Specified by:
        getSubModules in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<KubernetesCluster,​ContainerServiceSubscription,​com.azure.resourcemanager.containerservice.models.KubernetesCluster>
      • loadStatus

        @Nonnull
        public String loadStatus​(@Nonnull
                                 com.azure.resourcemanager.containerservice.models.KubernetesCluster remote)
        Specified by:
        loadStatus in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<KubernetesCluster,​ContainerServiceSubscription,​com.azure.resourcemanager.containerservice.models.KubernetesCluster>
      • start

        public void start()
        Specified by:
        start in interface com.microsoft.azure.toolkit.lib.common.model.Startable
      • stop

        public void stop()
        Specified by:
        stop in interface com.microsoft.azure.toolkit.lib.common.model.Startable
      • getAdminKubeConfig

        @Nonnull
        public byte[] getAdminKubeConfig()
      • getUserKubeConfig

        @Nonnull
        public byte[] getUserKubeConfig()
      • restart

        public void restart()
        Specified by:
        restart in interface com.microsoft.azure.toolkit.lib.common.model.Startable
      • isRestartable

        public boolean isRestartable()
        Specified by:
        isRestartable in interface com.microsoft.azure.toolkit.lib.common.model.Startable