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 Details

    • OciImageManifest

      public OciImageManifest()
      Creates an instance of OciImageManifest class.
  • Method Details

    • getConfig

      public OciDescriptor getConfig()
      Get the config property: V2 image config descriptor.
      Returns:
      the config value.
    • setConfig

      public OciImageManifest setConfig(OciDescriptor config)
      Set the config property: V2 image config descriptor.
      Parameters:
      config - the config value to set.
      Returns:
      the OciImageManifest object itself.
    • getLayers

      public List<OciDescriptor> getLayers()
      Get the layers property: List of V2 image layer information.
      Returns:
      the layers value.
    • setLayers

      public OciImageManifest setLayers(List<OciDescriptor> layers)
      Set the layers property: List of V2 image layer information.
      Parameters:
      layers - the layers value to set.
      Returns:
      the OciImageManifest object itself.
    • getAnnotations

      public OciAnnotations getAnnotations()
      Get the annotations property: Additional information provided through arbitrary metadata.
      Returns:
      the annotations value.
    • setAnnotations

      public OciImageManifest setAnnotations(OciAnnotations annotations)
      Set the annotations property: Additional information provided through arbitrary metadata.
      Parameters:
      annotations - the annotations value to set.
      Returns:
      the OciImageManifest object itself.
    • getSchemaVersion

      public Integer getSchemaVersion()
      Get the schemaVersion property: Schema version.
      Returns:
      the schemaVersion value.
    • setSchemaVersion

      public OciImageManifest setSchemaVersion(Integer schemaVersion)
      Set the schemaVersion property: Schema version.
      Parameters:
      schemaVersion - the schemaVersion value to set.
      Returns:
      the OciImageManifest object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OciImageManifest>
      Throws:
      IOException
    • fromJson

      public static OciImageManifest fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.