Class ManifestSummarySize
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ManifestSummarySize
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManifestSummarySize
extends Object
implements Serializable
Size is the size information of the content related to this manifest. Note: These sizes only take the locally available content into account.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ManifestSummarySizeCreate an instance of ManifestSummarySize given an JSON stringContent is the size (in bytes) of all the locally present content in the content store (e.g.getTotal()Total is the total size (in bytes) of all the locally present data (both distributable and non-distributable) that's related to this manifest and its children.inthashCode()voidsetContent(Long content) voidtoJson()Convert an instance of ManifestSummarySize to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONTENT
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManifestSummarySize
public ManifestSummarySize()
-
-
Method Details
-
content
-
getContent
Content is the size (in bytes) of all the locally present content in the content store (e.g. image config, layers) referenced by this manifest and its children. This only includes blobs in the content store.- Returns:
- content
-
setContent
-
total
-
getTotal
Total is the total size (in bytes) of all the locally present data (both distributable and non-distributable) that's related to this manifest and its children. This equal to the sum of [Content] size AND all the sizes in the [Size] struct present in the Kind-specific data struct. For example, for an image kind (Kind == ManifestKindImage), this would include the size of the image content and unpacked image snapshots ([Size.Content] + [ImageData.Size.Unpacked]).- Returns:
- total
-
setTotal
-
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 ManifestSummarySize
-
fromJson
Create an instance of ManifestSummarySize given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManifestSummarySize
- Throws:
IOException- if the JSON string is invalid with respect to ManifestSummarySize
-
toJson
Convert an instance of ManifestSummarySize to an JSON string- Returns:
- JSON string
-