Class KubernetesCluster
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<KubernetesCluster,ContainerServiceSubscription,com.azure.resourcemanager.containerservice.models.KubernetesCluster>
-
- com.microsoft.azure.toolkit.lib.containerservice.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
-
-
Field Summary
Fields Modifier and Type Field Description private KubernetesClusterAgentPoolModuleagentPoolModule
-
Constructor Summary
Constructors Modifier Constructor Description protectedKubernetesCluster(com.azure.resourcemanager.containerservice.models.KubernetesCluster remote, KubernetesClusterModule module)protectedKubernetesCluster(KubernetesCluster cluster)protectedKubernetesCluster(String name, String resourceGroupName, KubernetesClusterModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubernetesClusterAgentPoolModuleagentPools()byte[]getAdminKubeConfig()StringgetApiServerAddress()ContainerServiceNetworkProfilegetContainerServiceNetworkProfile()StringgetKubernetesVersion()PowerStategetPowerStatus()com.microsoft.azure.toolkit.lib.common.model.RegiongetRegion()List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>>getSubModules()byte[]getUserKubeConfig()booleanisRestartable()StringloadStatus(com.azure.resourcemanager.containerservice.models.KubernetesCluster remote)voidrestart()voidstart()voidstop()-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource
canEqual, delete, deleteFromCache, doModify, doModify, equals, exists, getId, getModule, getName, getParent, getRemote, getResourceGroup, getResourceGroupName, getStatus, getSubModule, hashCode, invalidateCache, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, refreshRemoteFromAzure, reloadStatus, remoteOptional, setRemote, setStatus, toString, update, updateAdditionalProperties
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
getFullResourceType, getPortalUrl, getResourceTypeName, getSubscription, getSubscriptionId, id, name
-
-
-
-
Field Detail
-
agentPoolModule
private final KubernetesClusterAgentPoolModule agentPoolModule
-
-
Constructor Detail
-
KubernetesCluster
protected KubernetesCluster(@Nonnull String name, @Nonnull String resourceGroupName, @Nonnull KubernetesClusterModule module)
-
KubernetesCluster
protected KubernetesCluster(@Nonnull KubernetesCluster cluster)
-
KubernetesCluster
protected KubernetesCluster(@Nonnull com.azure.resourcemanager.containerservice.models.KubernetesCluster remote, @Nonnull KubernetesClusterModule module)
-
-
Method Detail
-
getContainerServiceNetworkProfile
public ContainerServiceNetworkProfile getContainerServiceNetworkProfile()
-
getRegion
@Nullable public com.microsoft.azure.toolkit.lib.common.model.Region getRegion()
-
getPowerStatus
@Nullable public PowerState getPowerStatus()
-
getSubModules
@Nonnull public List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>> getSubModules()
- Specified by:
getSubModulesin classcom.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:
loadStatusin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<KubernetesCluster,ContainerServiceSubscription,com.azure.resourcemanager.containerservice.models.KubernetesCluster>
-
start
public void start()
- Specified by:
startin interfacecom.microsoft.azure.toolkit.lib.common.model.Startable
-
stop
public void stop()
- Specified by:
stopin interfacecom.microsoft.azure.toolkit.lib.common.model.Startable
-
getAdminKubeConfig
@Nonnull public byte[] getAdminKubeConfig()
-
getUserKubeConfig
@Nonnull public byte[] getUserKubeConfig()
-
restart
public void restart()
- Specified by:
restartin interfacecom.microsoft.azure.toolkit.lib.common.model.Startable
-
isRestartable
public boolean isRestartable()
- Specified by:
isRestartablein interfacecom.microsoft.azure.toolkit.lib.common.model.Startable
-
agentPools
public KubernetesClusterAgentPoolModule agentPools()
-
-