DeploymentSettings Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. DeploymentSettings
- com.
Implements
public final class DeploymentSettings
implements JsonSerializable<DeploymentSettings>
Deployment settings payload.
Constructor Summary
Constructor | Description |
---|---|
DeploymentSettings() |
Creates an instance of Deployment |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Map<String,Object>> |
addonConfigs()
Get the addon |
List<Apm |
apms()
Get the apms property: Collection of Apm |
Container |
containerProbeSettings()
Get the container |
Map<String,String> |
environmentVariables()
Get the environment |
static
Deployment |
fromJson(JsonReader jsonReader)
Reads an instance of Deployment |
Probe |
livenessProbe()
Get the liveness |
Probe |
readinessProbe()
Get the readiness |
Resource |
resourceRequests()
Get the resource |
Probe |
startupProbe()
Get the startup |
Integer |
terminationGracePeriodSeconds()
Get the termination |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Deployment |
withAddonConfigs(Map<String,Map<String,Object>> addonConfigs)
Set the addon |
Deployment |
withApms(List<ApmReference> apms)
Set the apms property: Collection of Apm |
Deployment |
withContainerProbeSettings(ContainerProbeSettings containerProbeSettings)
Set the container |
Deployment |
withEnvironmentVariables(Map<String,String> environmentVariables)
Set the environment |
Deployment |
withLivenessProbe(Probe livenessProbe)
Set the liveness |
Deployment |
withReadinessProbe(Probe readinessProbe)
Set the readiness |
Deployment |
withResourceRequests(ResourceRequests resourceRequests)
Set the resource |
Deployment |
withStartupProbe(Probe startupProbe)
Set the startup |
Deployment |
withTerminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
Set the termination |
Methods inherited from java.lang.Object
Constructor Details
DeploymentSettings
public DeploymentSettings()
Creates an instance of DeploymentSettings class.
Method Details
addonConfigs
public Map
Get the addonConfigs property: Collection of addons.
Returns:
apms
public List
Get the apms property: Collection of ApmReferences.
Returns:
containerProbeSettings
public ContainerProbeSettings containerProbeSettings()
Get the containerProbeSettings property: Container liveness and readiness probe settings.
Returns:
environmentVariables
public Map
Get the environmentVariables property: Collection of environment variables.
Returns:
fromJson
public static DeploymentSettings fromJson(JsonReader jsonReader)
Reads an instance of DeploymentSettings from the JsonReader.
Parameters:
Returns:
Throws:
livenessProbe
public Probe livenessProbe()
Get the livenessProbe property: Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle\#container-probes.
Returns:
readinessProbe
public Probe readinessProbe()
Get the readinessProbe property: Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle\#container-probes.
Returns:
resourceRequests
public ResourceRequests resourceRequests()
Get the resourceRequests property: The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later.
Returns:
startupProbe
public Probe startupProbe()
Get the startupProbe property: StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle\#container-probes.
Returns:
terminationGracePeriodSeconds
public Integer terminationGracePeriodSeconds()
Get the terminationGracePeriodSeconds property: Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAddonConfigs
public DeploymentSettings withAddonConfigs(Map
Set the addonConfigs property: Collection of addons.
Parameters:
Returns:
withApms
public DeploymentSettings withApms(List
Set the apms property: Collection of ApmReferences.
Parameters:
Returns:
withContainerProbeSettings
public DeploymentSettings withContainerProbeSettings(ContainerProbeSettings containerProbeSettings)
Set the containerProbeSettings property: Container liveness and readiness probe settings.
Parameters:
Returns:
withEnvironmentVariables
public DeploymentSettings withEnvironmentVariables(Map
Set the environmentVariables property: Collection of environment variables.
Parameters:
Returns:
withLivenessProbe
public DeploymentSettings withLivenessProbe(Probe livenessProbe)
Set the livenessProbe property: Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle\#container-probes.
Parameters:
Returns:
withReadinessProbe
public DeploymentSettings withReadinessProbe(Probe readinessProbe)
Set the readinessProbe property: Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle\#container-probes.
Parameters:
Returns:
withResourceRequests
public DeploymentSettings withResourceRequests(ResourceRequests resourceRequests)
Set the resourceRequests property: The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later.
Parameters:
Returns:
withStartupProbe
public DeploymentSettings withStartupProbe(Probe startupProbe)
Set the startupProbe property: StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle\#container-probes.
Parameters:
Returns:
withTerminationGracePeriodSeconds
public DeploymentSettings withTerminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
Set the terminationGracePeriodSeconds property: Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds.
Parameters:
Returns:
Applies to
Azure SDK for Java