Class V1DownwardAPIVolumeSource

java.lang.Object
io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1DownwardAPIVolumeSource extends Object
DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.
  • Field Details

  • Constructor Details

    • V1DownwardAPIVolumeSource

      public V1DownwardAPIVolumeSource()
  • Method Details

    • defaultMode

      public V1DownwardAPIVolumeSource defaultMode(Integer defaultMode)
    • getDefaultMode

      @Nullable 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.
      Returns:
      defaultMode
    • setDefaultMode

      public void setDefaultMode(Integer defaultMode)
    • items

    • addItemsItem

      public V1DownwardAPIVolumeSource addItemsItem(V1DownwardAPIVolumeFile itemsItem)
    • getItems

      @Nullable public List<V1DownwardAPIVolumeFile> getItems()
      Items is a list of downward API volume file
      Returns:
      items
    • setItems

      public void setItems(List<V1DownwardAPIVolumeFile> items)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1DownwardAPIVolumeSource
    • fromJson

      public static V1DownwardAPIVolumeSource fromJson(String jsonString) throws IOException
      Create an instance of V1DownwardAPIVolumeSource given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1DownwardAPIVolumeSource
      Throws:
      IOException - if the JSON string is invalid with respect to V1DownwardAPIVolumeSource
    • toJson

      public String toJson()
      Convert an instance of V1DownwardAPIVolumeSource to an JSON string
      Returns:
      JSON string