Class Summary

java.lang.Object
io.github.alersrt.pod4j.openapi.model.Summary

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class Summary extends Object
Summary
  • Field Details

  • Constructor Details

    • Summary

      public Summary()
  • Method Details

    • containers

      public Summary containers(Long containers)
    • getContainers

      @Nonnull public Long getContainers()
      Number of containers using this image. Includes both stopped and running containers. This size is not calculated by default, and depends on which API endpoint is used. `-1` indicates that the value has not been set / calculated.
      Returns:
      containers
    • setContainers

      public void setContainers(Long containers)
    • created

      public Summary created(Long created)
    • getCreated

      @Nonnull public Long getCreated()
      Date and time at which the image was created as a Unix timestamp (number of seconds since EPOCH).
      Returns:
      created
    • setCreated

      public void setCreated(Long created)
    • id

      public Summary id(String id)
    • getId

      @Nonnull public String getId()
      ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image.
      Returns:
      id
    • setId

      public void setId(String id)
    • labels

      public Summary labels(Map<String,String> labels)
    • putLabelsItem

      public Summary putLabelsItem(String key, String labelsItem)
    • getLabels

      @Nonnull public Map<String,String> getLabels()
      User-defined key/value metadata.
      Returns:
      labels
    • setLabels

      public void setLabels(Map<String,String> labels)
    • manifests

      public Summary manifests(List<ManifestSummary> manifests)
    • addManifestsItem

      public Summary addManifestsItem(ManifestSummary manifestsItem)
    • getManifests

      @Nullable public List<ManifestSummary> getManifests()
      Manifests is a list of image manifests available in this image. It provides a more detailed view of the platform-specific image manifests or other image-attached data like build attestations. WARNING: This is experimental and may change at any time without any backward compatibility.
      Returns:
      manifests
    • setManifests

      public void setManifests(List<ManifestSummary> manifests)
    • parentId

      public Summary parentId(String parentId)
    • getParentId

      @Nonnull public String getParentId()
      ID of the parent image. Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry.
      Returns:
      parentId
    • setParentId

      public void setParentId(String parentId)
    • repoDigests

      public Summary repoDigests(List<String> repoDigests)
    • addRepoDigestsItem

      public Summary addRepoDigestsItem(String repoDigestsItem)
    • getRepoDigests

      @Nonnull public List<String> getRepoDigests()
      List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated.
      Returns:
      repoDigests
    • setRepoDigests

      public void setRepoDigests(List<String> repoDigests)
    • repoTags

      public Summary repoTags(List<String> repoTags)
    • addRepoTagsItem

      public Summary addRepoTagsItem(String repoTagsItem)
    • getRepoTags

      @Nonnull public List<String> getRepoTags()
      List of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is \"untagged\", in which case it can still be referenced by its ID.
      Returns:
      repoTags
    • setRepoTags

      public void setRepoTags(List<String> repoTags)
    • sharedSize

      public Summary sharedSize(Long sharedSize)
    • getSharedSize

      @Nonnull public Long getSharedSize()
      Total size of image layers that are shared between this image and other images. This size is not calculated by default. `-1` indicates that the value has not been set / calculated.
      Returns:
      sharedSize
    • setSharedSize

      public void setSharedSize(Long sharedSize)
    • size

      public Summary size(Long size)
    • getSize

      @Nonnull public Long getSize()
      Total size of the image including all layers it is composed of.
      Returns:
      size
    • setSize

      public void setSize(Long size)
    • virtualSize

      public Summary virtualSize(Long virtualSize)
    • getVirtualSize

      @Nullable public Long getVirtualSize()
      Total size of the image including all layers it is composed of. Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead.
      Returns:
      virtualSize
    • setVirtualSize

      public void setVirtualSize(Long virtualSize)
    • 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 Summary
    • fromJson

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

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