org.mandas.docker.client.messages.ImageInfo Maven / Gradle / Ivy
/*-
* -\-\-
* docker-client
* --
* Copyright (C) 2016 Spotify AB
* Copyright (C) 9/2019 - 2020 Dimitris Mandalidis
* --
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* -/-/-
*/
package org.mandas.docker.client.messages;
import java.util.Date;
import org.immutables.value.Value.Immutable;
import org.immutables.value.Value.Default;
import org.mandas.docker.Nullable;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
@JsonDeserialize(builder = ImmutableImageInfo.Builder.class)
@Immutable
public interface ImageInfo {
@JsonProperty("Id")
String id();
@JsonProperty("Parent")
String parent();
@JsonProperty("Comment")
String comment();
@JsonProperty("Created")
Date created();
@Deprecated // as of v1.44
@JsonProperty("Container")
String container();
@Deprecated // as of v1.44
@JsonProperty("ContainerConfig")
ContainerConfig containerConfig();
@JsonProperty("DockerVersion")
String dockerVersion();
@JsonProperty("Author")
String author();
@JsonProperty("Config")
ContainerConfig config();
@JsonProperty("Architecture")
String architecture();
@JsonProperty("Os")
String os();
@JsonProperty("Size")
Long size();
@Deprecated // as of v1.43
@Default
@JsonProperty("VirtualSize")
default Long virtualSize() {
return size();
}
@Nullable
@JsonProperty("RootFS")
RootFs rootFs();
}