Class OciDescriptor
java.lang.Object
com.azure.containers.containerregistry.models.OciDescriptor
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OciDescriptor>
public final class OciDescriptor
extends Object
implements com.azure.json.JsonSerializable<OciDescriptor>
Docker V2 image layer descriptor including config and layers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OciDescriptor
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of OciDescriptor from the JsonReader.Get the annotations property: Additional information provided through arbitrary metadata.Get the digest property: Layer digest.Get the mediaType property: Layer media type.Get the sizeInBytes property: Layer size.getUrls()
Get the urls property: Specifies a list of URIs from which this object may be downloaded.setAnnotations
(OciAnnotations annotations) Set the annotations property: Additional information provided through arbitrary metadata.Set the digest property: Layer digest.setMediaType
(String mediaType) Set the mediaType property: Layer media type.setSizeInBytes
(Long sizeInBytes) Set the sizeInBytes property: Layer size.Set the urls property: Specifies a list of URIs from which this object may be downloaded.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter)
-
Constructor Details
-
OciDescriptor
public OciDescriptor()Creates an instance of OciDescriptor class.
-
-
Method Details
-
getMediaType
Get the mediaType property: Layer media type.- Returns:
- the mediaType value.
-
setMediaType
Set the mediaType property: Layer media type.- Parameters:
mediaType
- the mediaType value to set.- Returns:
- the OciDescriptor object itself.
-
getSizeInBytes
Get the sizeInBytes property: Layer size.- Returns:
- the sizeInBytes value.
-
setSizeInBytes
Set the sizeInBytes property: Layer size.- Parameters:
sizeInBytes
- the sizeInBytes value to set.- Returns:
- the OciDescriptor object itself.
-
getDigest
Get the digest property: Layer digest.- Returns:
- the digest value.
-
setDigest
Set the digest property: Layer digest.- Parameters:
digest
- the digest value to set.- Returns:
- the OciDescriptor object itself.
-
getUrls
Get the urls property: Specifies a list of URIs from which this object may be downloaded.- Returns:
- the urls value.
-
setUrls
Set the urls property: Specifies a list of URIs from which this object may be downloaded.- Parameters:
urls
- the urls value to set.- Returns:
- the OciDescriptor 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 OciDescriptor object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<OciDescriptor>
- Throws:
IOException
-
fromJson
Reads an instance of OciDescriptor from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of OciDescriptor 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 OciDescriptor.
-