java.lang.Object
io.github.alersrt.pod4j.openapi.model.Info
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Info extends Object implements Serializable
Info contains information about the Volume as a whole as provided by the CSI storage plugin.
See Also:
  • Field Details

  • Constructor Details

    • Info

      public Info()
  • Method Details

    • accessibleTopology

      public Info accessibleTopology(List<Topology> accessibleTopology)
    • addAccessibleTopologyItem

      public Info addAccessibleTopologyItem(Topology accessibleTopologyItem)
    • getAccessibleTopology

      @Nullable @Valid public @Valid List<Topology> getAccessibleTopology()
      AccessibleTopology is the topology this volume is actually accessible from.
      Returns:
      accessibleTopology
    • setAccessibleTopology

      public void setAccessibleTopology(List<Topology> accessibleTopology)
    • capacityBytes

      public Info capacityBytes(Long capacityBytes)
    • getCapacityBytes

      @Nullable public Long getCapacityBytes()
      CapacityBytes is the capacity of the volume in bytes. A value of 0 indicates that the capacity is unknown.
      Returns:
      capacityBytes
    • setCapacityBytes

      public void setCapacityBytes(Long capacityBytes)
    • volumeContext

      public Info volumeContext(Map<String,String> volumeContext)
    • putVolumeContextItem

      public Info putVolumeContextItem(String key, String volumeContextItem)
    • getVolumeContext

      @Nullable public Map<String,String> getVolumeContext()
      VolumeContext is the context originating from the CSI storage plugin when the Volume is created.
      Returns:
      volumeContext
    • setVolumeContext

      public void setVolumeContext(Map<String,String> volumeContext)
    • volumeID

      public Info volumeID(String volumeID)
    • getVolumeID

      @Nullable public String getVolumeID()
      VolumeID is the ID of the Volume as seen by the CSI storage plugin. This is distinct from the Volume's Swarm ID, which is the ID used by all of the Docker Engine to refer to the Volume. If this field is blank, then the Volume has not been successfully created yet.
      Returns:
      volumeID
    • setVolumeID

      public void setVolumeID(String volumeID)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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 Info
    • fromJson

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

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