package com.github.dockerjava.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

/**
 *
 * @author Konstantin Pelykh (kpelykh@gmail.com)
 *
 */
@EqualsAndHashCode
@ToString
public class Image implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonProperty("Created")
    private Long created;

    @JsonProperty("Id")
    private String id;

    @JsonProperty("ParentId")
    private String parentId;

    @JsonProperty("RepoTags")
    private String[] repoTags;

    @JsonProperty("Size")
    private Long size;

    @JsonProperty("VirtualSize")
    private Long virtualSize;

    public String getId() {
        return id;
    }

    public String[] getRepoTags() {
        return repoTags;
    }

    public String getParentId() {
        return parentId;
    }

    public Long getCreated() {
        return created;
    }

    public Long getSize() {
        return size;
    }

    public Long getVirtualSize() {
        return virtualSize;
    }
}

@@ -89,16 +89,17 @@
 operty;%0A
+%0A
 import l
@@ -176,16 +176,38 @@
 lizable;
+%0Aimport java.util.Map;
 %0A%0A/**%0A *
@@ -617,16 +617,84 @@
 oTags;%0A%0A
+    @JsonProperty(%22RepoDigests%22)%0A    private String%5B%5D repoDigests;%0A%0A
     @Jso
@@ -795,24 +795,219 @@
 rtualSize;%0A%0A
+    @JsonProperty(%22SharedSize%22)%0A    private Long sharedSize;%0A%0A    @JsonProperty(%22Labels%22)%0A    public Map%3CString, String%3E labels;%0A%0A    @JsonProperty(%22Containers%22)%0A    private Integer containers;%0A%0A
     public S
@@ -1108,32 +1108,106 @@
 epoTags;%0A    %7D%0A%0A
+    public String%5B%5D getRepoDigests() %7B%0A        return repoDigests;%0A    %7D%0A%0A
     public Strin
@@ -1401,32 +1401,32 @@
 VirtualSize() %7B%0A
-
         return v
@@ -1443,10 +1443,225 @@
 ;%0A    %7D%0A
+%0A%0A    public Long getSharedSize() %7B%0A        return sharedSize;%0A    %7D%0A%0A    public Map%3CString, String%3E getLabels() %7B%0A        return labels;%0A    %7D%0A%0A    public Integer getContainers() %7B%0A        return containers;%0A    %7D%0A
 %7D%0A

Add missing fields to Image (#1345)