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<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>,com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<SpringCloudDeployment,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>,com.microsoft.azure.toolkit.lib.common.model.AzResourceBase,com.microsoft.azure.toolkit.lib.common.model.Refreshable,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<T,?,R>,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 SpringCloudDeploymentDraft.Configconfigprivate SpringCloudDeploymentDraft.IConfigconfigProxyprivate static StringDEFAULT_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()private static StringformalizeRuntimeVersion(String runtimeVersion)SpringCloudDeploymentConfiggetConfig()Objectinvoke(Object proxy, Method method, Object[] args)private ObjectinvokeSuper(Method method, Object[] args)booleanisModified()(package private) booleanmodify(com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl deployment)voidreset()private booleanscale(com.azure.resourcemanager.appplatform.models.SpringAppDeployment deployment, com.azure.resourcemanager.appplatform.models.SpringAppDeployment.Update update)(package private) com.azure.resourcemanager.appplatform.models.SpringAppDeploymentscaleDeploymentInAzure(com.azure.resourcemanager.appplatform.models.SpringAppDeployment deployment)voidsetConfig(SpringCloudDeploymentConfig deploymentConfig)com.azure.resourcemanager.appplatform.models.SpringAppDeploymentupdateResourceInAzure(com.azure.resourcemanager.appplatform.models.SpringAppDeployment deployment)-
Methods inherited from class com.microsoft.azure.toolkit.lib.springcloud.SpringCloudDeployment
getCpu, getEnvironmentVariables, getInstanceNum, getInstances, getJvmOptions, getMemoryInGB, getRuntimeVersion, getSubModules, isActive, loadStatus, restart, start, stop, streamLogs, streamLogs, waitUntilReady
-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource
canEqual, delete, deleteFromLocal, doModify, doModify, doModifyAsync, doModifyAsync, equals, exists, getId, getModule, getName, getRemote, getResourceGroup, getResourceGroupName, getStatus, getStatusSync, getSubModule, hashCode, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, refreshRemote, remoteOptional, setRemote, setStatus, 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
getFullResourceType, getParent, getPortalUrl, getResourceTypeName, getSubscription, getSubscriptionId, id, name
-
-
-
-
Field Detail
-
DEFAULT_RUNTIME_VERSION
private static final String DEFAULT_RUNTIME_VERSION
- 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>
-
scaleDeploymentInAzure
@Nonnull com.azure.resourcemanager.appplatform.models.SpringAppDeployment scaleDeploymentInAzure(@Nonnull com.azure.resourcemanager.appplatform.models.SpringAppDeployment deployment)
-
modify
boolean modify(@Nonnull com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl deployment)
-
scale
private boolean scale(@Nonnull com.azure.resourcemanager.appplatform.models.SpringAppDeployment deployment, @Nonnull com.azure.resourcemanager.appplatform.models.SpringAppDeployment.Update update)
-
formalizeRuntimeVersion
@Nonnull private static String 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>
-
-