Class SpringCloudDeploymentDraft
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
- com.microsoft.azure.toolkit.lib.springcloud.SpringCloudDeployment
-
- com.microsoft.azure.toolkit.lib.springcloud.SpringCloudDeploymentDraft
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.model.AzResource,com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<SpringCloudDeployment,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>,com.microsoft.azure.toolkit.lib.common.model.Refreshable,com.microsoft.azure.toolkit.lib.servicelinker.ServiceLinkerConsumer,InvocationHandler
public class SpringCloudDeploymentDraft extends SpringCloudDeployment implements com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<SpringCloudDeployment,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>, InvocationHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSpringCloudDeploymentDraft.Confignullmeans not modified for propertiesprivate static interfaceSpringCloudDeploymentDraft.IConfig-
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.FormalStatus, 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 SpringCloudDeploymentDraft.Configconfigprivate SpringCloudDeploymentDraft.IConfigconfigProxystatic intDEFAULT_CAPACITYstatic doubleDEFAULT_CPUstatic doubleDEFAULT_MEMORYstatic com.azure.resourcemanager.appplatform.models.RuntimeVersionDEFAULT_RUNTIME_VERSIONprivate SpringCloudDeploymentoriginprivate static StringRUNTIME_VERSION_PATTERN
-
Constructor Summary
Constructors Modifier Constructor Description protectedSpringCloudDeploymentDraft(SpringCloudDeployment origin)protectedSpringCloudDeploymentDraft(String name, SpringCloudDeploymentModule module)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.resourcemanager.appplatform.models.SpringAppDeploymentcreateResourceInAzure()static com.azure.resourcemanager.appplatform.models.RuntimeVersionformalizeRuntimeVersion(String runtimeVersion)SpringCloudDeploymentConfiggetConfig()Objectinvoke(Object proxy, Method method, Object[] args)private ObjectinvokeSuper(Method method, Object[] args)booleanisModified()booleanisScaled()booleanisUpdated()voidreset()(package private) booleanscale(com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl deployment)voidsetConfig(SpringCloudDeploymentConfig deploymentConfig)(package private) booleanupdate(com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl deployment)com.azure.resourcemanager.appplatform.models.SpringAppDeploymentupdateResourceInAzure(com.azure.resourcemanager.appplatform.models.SpringAppDeployment deployment)-
Methods inherited from class com.microsoft.azure.toolkit.lib.springcloud.SpringCloudDeployment
disableRemoteDebugging, enableRemoteDebugging, getCapacity, getCpu, getEnvironmentVariables, getInstances, getJvmOptions, getLatestInstance, getMemoryInGB, getRemoteDebuggingPort, getRuntimeVersion, getServiceLinkerModule, getSubModules, isActive, isRemoteDebuggingEnabled, loadStatus, restart, setStatus, start, stop, updateAdditionalProperties, waitUntilReady
-
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, isAuthRequired, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, refreshRemoteFromAzure, reloadStatus, remoteOptional, setRemote, toString, update
-
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
delete, exists, getFormalStatus, getFormalStatus, getFullResourceType, getId, getModule, getName, getPortalUrl, getResourceGroupName, getResourceTypeName, getStatus, getStatus, getSubscription, getSubscriptionId, id, name, refresh
-
-
-
-
Field Detail
-
DEFAULT_RUNTIME_VERSION
public static final com.azure.resourcemanager.appplatform.models.RuntimeVersion DEFAULT_RUNTIME_VERSION
-
DEFAULT_MEMORY
public static final double DEFAULT_MEMORY
- See Also:
- Constant Field Values
-
DEFAULT_CPU
public static final double DEFAULT_CPU
- See Also:
- Constant Field Values
-
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITY
- See Also:
- Constant Field Values
-
RUNTIME_VERSION_PATTERN
private static final String RUNTIME_VERSION_PATTERN
- See Also:
- Constant Field Values
-
configProxy
@Nonnull private final SpringCloudDeploymentDraft.IConfig configProxy
-
origin
@Nullable private final SpringCloudDeployment origin
-
config
@Nullable private SpringCloudDeploymentDraft.Config config
-
-
Constructor Detail
-
SpringCloudDeploymentDraft
protected SpringCloudDeploymentDraft(@Nonnull String name, @Nonnull SpringCloudDeploymentModule module)
-
SpringCloudDeploymentDraft
protected SpringCloudDeploymentDraft(@Nonnull SpringCloudDeployment origin)
-
-
Method Detail
-
setConfig
public void setConfig(@Nonnull SpringCloudDeploymentConfig deploymentConfig)
-
getConfig
@Nonnull public SpringCloudDeploymentConfig getConfig()
-
reset
public void reset()
- Specified by:
resetin interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<SpringCloudDeployment,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
createResourceInAzure
@Nonnull public com.azure.resourcemanager.appplatform.models.SpringAppDeployment createResourceInAzure()
- Specified by:
createResourceInAzurein interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<SpringCloudDeployment,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
updateResourceInAzure
@Nonnull public com.azure.resourcemanager.appplatform.models.SpringAppDeployment updateResourceInAzure(@Nonnull com.azure.resourcemanager.appplatform.models.SpringAppDeployment deployment)
- Specified by:
updateResourceInAzurein interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<SpringCloudDeployment,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
scale
boolean scale(@Nonnull com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl deployment)
-
update
boolean update(@Nonnull com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl deployment)
-
formalizeRuntimeVersion
@Nonnull public static com.azure.resourcemanager.appplatform.models.RuntimeVersion formalizeRuntimeVersion(String runtimeVersion)
-
invoke
@Nullable public Object invoke(Object proxy, @Nonnull Method method, Object[] args) throws Throwable
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
invokeSuper
private Object invokeSuper(@Nonnull Method method, @Nonnull Object[] args) throws Throwable
- Throws:
Throwable
-
isModified
public boolean isModified()
- Specified by:
isModifiedin interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<SpringCloudDeployment,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
isScaled
public boolean isScaled()
-
isUpdated
public boolean isUpdated()
-
-