Package io.fabric8.kubernetes.api.model
Class DownwardAPIVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.DownwardAPIVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<DownwardAPIVolumeSourceBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DownwardAPIVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<DownwardAPIVolumeSourceBuilder>, KubernetesResource
DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DownwardAPIVolumeSource()No args constructor for use in serializationDownwardAPIVolumeSource(Integer defaultMode, List<DownwardAPIVolumeFile> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DownwardAPIVolumeSourceBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetDefaultMode()Optional: mode bits to use on created files by default.List<DownwardAPIVolumeFile>getItems()Items is a list of downward API volume filevoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDefaultMode(Integer defaultMode)Optional: mode bits to use on created files by default.voidsetItems(List<DownwardAPIVolumeFile> items)Items is a list of downward API volume fileDownwardAPIVolumeSourceBuildertoBuilder()
-
-
-
Constructor Detail
-
DownwardAPIVolumeSource
public DownwardAPIVolumeSource()
No args constructor for use in serialization
-
DownwardAPIVolumeSource
public DownwardAPIVolumeSource(Integer defaultMode, List<DownwardAPIVolumeFile> items)
-
-
Method Detail
-
getDefaultMode
public Integer getDefaultMode()
Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
-
setDefaultMode
public void setDefaultMode(Integer defaultMode)
Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
-
getItems
public List<DownwardAPIVolumeFile> getItems()
Items is a list of downward API volume file
-
setItems
public void setItems(List<DownwardAPIVolumeFile> items)
Items is a list of downward API volume file
-
edit
public DownwardAPIVolumeSourceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<DownwardAPIVolumeSourceBuilder>
-
toBuilder
public DownwardAPIVolumeSourceBuilder toBuilder()
-
-