DeploymentSettings Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. DeploymentSettings
- com.
Implements
public final class DeploymentSettings
implements JsonSerializable<DeploymentSettings>
Deployment settings payload.
Constructor | Description |
---|---|
Deployment |
Creates an instance of Deployment |
Modifier and Type | Method and Description |
---|---|
Map<String,Map<String,Object>> |
addon Get the addon |
List<Apm |
apms()
Get the apms property: Collection of Apm |
Container |
container Get the container |
Map<String,String> |
environment Get the environment |
static
Deployment |
from Reads an instance of Deployment |
Probe |
liveness Get the liveness |
Probe |
readiness Get the readiness |
Resource |
resource Get the resource |
Probe |
startup Get the startup |
Integer |
termination Get the termination |
Json |
to |
void |
validate()
Validates the instance. |
Deployment |
with Set the addon |
Deployment |
with Set the apms property: Collection of Apm |
Deployment |
with Set the container |
Deployment |
with Set the environment |
Deployment |
with Set the liveness |
Deployment |
with Set the readiness |
Deployment |
with Set the resource |
Deployment |
with Set the startup |
Deployment |
with Set the termination |
Methods inherited from java.lang.Object
DeploymentSettings
public DeploymentSettings()
Creates an instance of DeploymentSettings class.
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:
Azure SDK for Java geri bildirimi
Azure SDK for Java, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: