Class Info
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Info
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class Info
extends Object
Info contains information about the Volume as a whole as provided by the CSI storage plugin.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessibleTopology(List<@Valid 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<@Valid Topology> accessibleTopology) voidsetCapacityBytes(Long capacityBytes) voidsetVolumeContext(Map<String, String> volumeContext) voidsetVolumeID(String volumeID) toJson()Convert an instance of Info to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
validateJsonElement
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 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
-
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
-
toJson
Convert an instance of Info to an JSON string- Returns:
- JSON string
-