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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OciImageManifestfromJson(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 configuration property: V2 image config descriptor.Get the layers property: List of V2 image layer information.intGet the schemaVersion property: Schema version.setAnnotations(OciAnnotations annotations) Set the annotations property: Additional information provided through arbitrary metadata.setConfiguration(OciDescriptor configuration) Set the configuration property: V2 image config descriptor.setLayers(List<OciDescriptor> layers) Set the layers property: List of V2 image layer information.setSchemaVersion(int schemaVersion) Set the schemaVersion property: Schema version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter)
-
Constructor Details
-
OciImageManifest
public OciImageManifest()Creates an instance of OciImageManifest class.
-
-
Method Details
-
getConfiguration
Get the configuration property: V2 image config descriptor.- Returns:
- the configuration value.
-
setConfiguration
Set the configuration property: V2 image config descriptor.- Parameters:
configuration- the configuration 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
public int 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:
toJsonin 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the OciImageManifest.
-