Class NodeDisruptionPolicySpecUnit
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.NodeDisruptionPolicySpecUnit
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NodeDisruptionPolicySpecUnitBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NodeDisruptionPolicySpecUnit extends Object implements io.fabric8.kubernetes.api.builder.Editable<NodeDisruptionPolicySpecUnitBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NodeDisruptionPolicySpecUnit is a systemd unit name and corresponding actions to take and is used in the NodeDisruptionPolicyConfig object- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeDisruptionPolicySpecUnit()No args constructor for use in serializationNodeDisruptionPolicySpecUnit(List<NodeDisruptionPolicySpecAction> actions, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeDisruptionPolicySpecUnitBuilderedit()List<NodeDisruptionPolicySpecAction>getActions()actions represents the series of commands to be executed on changes to the file at the corresponding file path.Map<String,Object>getAdditionalProperties()StringgetName()name represents the service name of a systemd service managed through a MachineConfig Actions specified will be applied for changes to the named service.voidsetActions(List<NodeDisruptionPolicySpecAction> actions)actions represents the series of commands to be executed on changes to the file at the corresponding file path.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetName(String name)name represents the service name of a systemd service managed through a MachineConfig Actions specified will be applied for changes to the named service.NodeDisruptionPolicySpecUnitBuildertoBuilder()
-
-
-
Constructor Detail
-
NodeDisruptionPolicySpecUnit
public NodeDisruptionPolicySpecUnit()
No args constructor for use in serialization
-
NodeDisruptionPolicySpecUnit
public NodeDisruptionPolicySpecUnit(List<NodeDisruptionPolicySpecAction> actions, String name)
-
-
Method Detail
-
getActions
public List<NodeDisruptionPolicySpecAction> getActions()
actions represents the series of commands to be executed on changes to the file at the corresponding file path. Actions will be applied in the order that they are set in this list. If there are other incoming changes to other MachineConfig entries in the same update that require a reboot, the reboot will supercede these actions. Valid actions are Reboot, Drain, Reload, DaemonReload and None. The Reboot action and the None action cannot be used in conjunction with any of the other actions. This list supports a maximum of 10 entries.
-
setActions
public void setActions(List<NodeDisruptionPolicySpecAction> actions)
actions represents the series of commands to be executed on changes to the file at the corresponding file path. Actions will be applied in the order that they are set in this list. If there are other incoming changes to other MachineConfig entries in the same update that require a reboot, the reboot will supercede these actions. Valid actions are Reboot, Drain, Reload, DaemonReload and None. The Reboot action and the None action cannot be used in conjunction with any of the other actions. This list supports a maximum of 10 entries.
-
getName
public String getName()
name represents the service name of a systemd service managed through a MachineConfig Actions specified will be applied for changes to the named service. Service names should be of the format ${NAME}${SERVICETYPE} and can up to 255 characters long. ${NAME} must be atleast 1 character long and can only consist of alphabets, digits, ":", "-", "_", ".", and "\". ${SERVICETYPE} must be one of ".service", ".socket", ".device", ".mount", ".automount", ".swap", ".target", ".path", ".timer", ".snapshot", ".slice" or ".scope".
-
setName
public void setName(String name)
name represents the service name of a systemd service managed through a MachineConfig Actions specified will be applied for changes to the named service. Service names should be of the format ${NAME}${SERVICETYPE} and can up to 255 characters long. ${NAME} must be atleast 1 character long and can only consist of alphabets, digits, ":", "-", "_", ".", and "\". ${SERVICETYPE} must be one of ".service", ".socket", ".device", ".mount", ".automount", ".swap", ".target", ".path", ".timer", ".snapshot", ".slice" or ".scope".
-
edit
public NodeDisruptionPolicySpecUnitBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NodeDisruptionPolicySpecUnitBuilder>
-
toBuilder
public NodeDisruptionPolicySpecUnitBuilder toBuilder()
-
-