Class V1DaemonSetSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1DaemonSetSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1DaemonSetSpec
extends Object
DaemonSetSpec is the specification of a daemon set.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1DaemonSetSpec
Create an instance of V1DaemonSetSpec given an JSON stringThe minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available.The number of old history to retain to allow rollback.Get selectorGet templateGet updateStrategyint
hashCode()
minReadySeconds
(Integer minReadySeconds) revisionHistoryLimit
(Integer revisionHistoryLimit) selector
(V1LabelSelector selector) void
setMinReadySeconds
(Integer minReadySeconds) void
setRevisionHistoryLimit
(Integer revisionHistoryLimit) void
setSelector
(V1LabelSelector selector) void
setTemplate
(V1PodTemplateSpec template) void
setUpdateStrategy
(V1DaemonSetUpdateStrategy updateStrategy) template
(V1PodTemplateSpec template) toJson()
Convert an instance of V1DaemonSetSpec to an JSON stringtoString()
updateStrategy
(V1DaemonSetUpdateStrategy updateStrategy) static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MIN_READY_SECONDS
- See Also:
-
SERIALIZED_NAME_REVISION_HISTORY_LIMIT
- See Also:
-
SERIALIZED_NAME_SELECTOR
- See Also:
-
SERIALIZED_NAME_TEMPLATE
- See Also:
-
SERIALIZED_NAME_UPDATE_STRATEGY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1DaemonSetSpec
public V1DaemonSetSpec()
-
-
Method Details
-
minReadySeconds
-
getMinReadySeconds
The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).- Returns:
- minReadySeconds
-
setMinReadySeconds
-
revisionHistoryLimit
-
getRevisionHistoryLimit
The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.- Returns:
- revisionHistoryLimit
-
setRevisionHistoryLimit
-
selector
-
getSelector
Get selector- Returns:
- selector
-
setSelector
-
template
-
getTemplate
Get template- Returns:
- template
-
setTemplate
-
updateStrategy
-
getUpdateStrategy
Get updateStrategy- Returns:
- updateStrategy
-
setUpdateStrategy
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1DaemonSetSpec
-
fromJson
Create an instance of V1DaemonSetSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1DaemonSetSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1DaemonSetSpec
-
toJson
Convert an instance of V1DaemonSetSpec to an JSON string- Returns:
- JSON string
-