Class Info
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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessibleTopology(List<Topology> accessibleTopology) addAccessibleTopologyItem(Topology accessibleTopologyItem) capacityBytes(Long capacityBytes) booleanstatic InfoCreate an instance of Info given an JSON stringAccessibleTopology is the topology this volume is actually accessible from.CapacityBytes is the capacity of the volume in bytes.VolumeContext is the context originating from the CSI storage plugin when the Volume is created.VolumeID is the ID of the Volume as seen by the CSI storage plugin.inthashCode()putVolumeContextItem(String key, String volumeContextItem) voidsetAccessibleTopology(List<Topology> accessibleTopology) voidsetCapacityBytes(Long capacityBytes) voidsetVolumeContext(Map<String, String> volumeContext) voidsetVolumeID(String volumeID) toJson()Convert an instance of Info to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues foundvolumeContext(Map<String, String> volumeContext)
-
Field Details
-
SERIALIZED_NAME_ACCESSIBLE_TOPOLOGY
- See Also:
-
SERIALIZED_NAME_CAPACITY_BYTES
- See Also:
-
SERIALIZED_NAME_VOLUME_CONTEXT
- See Also:
-
SERIALIZED_NAME_VOLUME_I_D
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Info
public Info()
-
-
Method Details
-
accessibleTopology
-
addAccessibleTopologyItem
-
getAccessibleTopology
AccessibleTopology is the topology this volume is actually accessible from.- Returns:
- accessibleTopology
-
setAccessibleTopology
-
capacityBytes
-
getCapacityBytes
CapacityBytes is the capacity of the volume in bytes. A value of 0 indicates that the capacity is unknown.- Returns:
- capacityBytes
-
setCapacityBytes
-
volumeContext
-
putVolumeContextItem
-
getVolumeContext
VolumeContext is the context originating from the CSI storage plugin when the Volume is created.- Returns:
- volumeContext
-
setVolumeContext
-
volumeID
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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
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
Convert an instance of Info to an JSON string- Returns:
- JSON string
-