ImageMetadataProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.ImageMetadataProfile

Implements

public final class ImageMetadataProfile
implements JsonSerializable<ImageMetadataProfile>

Describes the metadata profile of an image.

Method Summary

Modifier and Type Method and Description
static ImageMetadataProfile fromJson(JsonReader jsonReader)

Reads an instance of ImageMetadataProfile from the JsonReader.

List<MetadataKeyValue> internalMetadataList()

Get the internalMetadataList property: The list of internal metadata key-value pairs.

List<MetadataKeyValue> publicMetadataList()

Get the publicMetadataList property: The list of public metadata key-value pairs.

JsonWriter toJson(JsonWriter jsonWriter)
MetadataType type()

Get the type property: The type of metadata.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static ImageMetadataProfile fromJson(JsonReader jsonReader)

Reads an instance of ImageMetadataProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ImageMetadataProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

internalMetadataList

public List<MetadataKeyValue> internalMetadataList()

Get the internalMetadataList property: The list of internal metadata key-value pairs. Contains non-sensitive service-internal metadata for diagnostics and tracking. No secret material is emitted in this list.

Returns:

the internalMetadataList value.

publicMetadataList

public List<MetadataKeyValue> publicMetadataList()

Get the publicMetadataList property: The list of public metadata key-value pairs. Contains non-sensitive image capability metadata such as supported OS, component names, and versions. No secret material is emitted in this list.

Returns:

the publicMetadataList value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public MetadataType type()

Get the type property: The type of metadata.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to