Class NodeDisruptionPolicySpecFile
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.NodeDisruptionPolicySpecFile
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NodeDisruptionPolicySpecFileBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NodeDisruptionPolicySpecFile extends Object implements io.fabric8.kubernetes.api.builder.Editable<NodeDisruptionPolicySpecFileBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NodeDisruptionPolicySpecFile is a file entry and corresponding actions to take and is used in the NodeDisruptionPolicyConfig object- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeDisruptionPolicySpecFile()No args constructor for use in serializationNodeDisruptionPolicySpecFile(List<NodeDisruptionPolicySpecAction> actions, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeDisruptionPolicySpecFileBuilderedit()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()StringgetPath()path is the location of a file being managed through a MachineConfig.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)voidsetPath(String path)path is the location of a file being managed through a MachineConfig.NodeDisruptionPolicySpecFileBuildertoBuilder()
-
-
-
Constructor Detail
-
NodeDisruptionPolicySpecFile
public NodeDisruptionPolicySpecFile()
No args constructor for use in serialization
-
NodeDisruptionPolicySpecFile
public NodeDisruptionPolicySpecFile(List<NodeDisruptionPolicySpecAction> actions, String path)
-
-
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.
-
getPath
public String getPath()
path is the location of a file being managed through a MachineConfig. The Actions in the policy will apply to changes to the file at this path.
-
setPath
public void setPath(String path)
path is the location of a file being managed through a MachineConfig. The Actions in the policy will apply to changes to the file at this path.
-
edit
public NodeDisruptionPolicySpecFileBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NodeDisruptionPolicySpecFileBuilder>
-
toBuilder
public NodeDisruptionPolicySpecFileBuilder toBuilder()
-
-