Class OciImageManifest
java.lang.Object
com.azure.containers.containerregistry.models.OciImageManifest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OciImageManifest>
public final class OciImageManifest
extends Object
implements com.azure.json.JsonSerializable<OciImageManifest>
Returns the requested OCI Manifest file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OciImageManifest
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of OciImageManifest from the JsonReader.Get the annotations property: Additional information provided through arbitrary metadata.Get the config property: V2 image config descriptor.Get the layers property: List of V2 image layer information.Get the schemaVersion property: Schema version.setAnnotations
(OciAnnotations annotations) Set the annotations property: Additional information provided through arbitrary metadata.setConfig
(OciDescriptor config) Set the config property: V2 image config descriptor.setLayers
(List<OciDescriptor> layers) Set the layers property: List of V2 image layer information.setSchemaVersion
(Integer schemaVersion) Set the schemaVersion property: Schema version.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter)
-
Constructor Details
-
OciImageManifest
public OciImageManifest()Creates an instance of OciImageManifest class.
-
-
Method Details
-
getConfig
Get the config property: V2 image config descriptor.- Returns:
- the config value.
-
setConfig
Set the config property: V2 image config descriptor.- Parameters:
config
- the config value to set.- Returns:
- the OciImageManifest object itself.
-
getLayers
Get the layers property: List of V2 image layer information.- Returns:
- the layers value.
-
setLayers
Set the layers property: List of V2 image layer information.- Parameters:
layers
- the layers value to set.- Returns:
- the OciImageManifest object itself.
-
getAnnotations
Get the annotations property: Additional information provided through arbitrary metadata.- Returns:
- the annotations value.
-
setAnnotations
Set the annotations property: Additional information provided through arbitrary metadata.- Parameters:
annotations
- the annotations value to set.- Returns:
- the OciImageManifest object itself.
-
getSchemaVersion
Get the schemaVersion property: Schema version.- Returns:
- the schemaVersion value.
-
setSchemaVersion
Set the schemaVersion property: Schema version.- Parameters:
schemaVersion
- the schemaVersion value to set.- Returns:
- the OciImageManifest object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<OciImageManifest>
- Throws:
IOException
-
fromJson
Reads an instance of OciImageManifest from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of OciImageManifest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the OciImageManifest.
-