MetadataKeyValue Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. MetadataKeyValue
- com.
Implements
public final class MetadataKeyValue
implements JsonSerializable<MetadataKeyValue>
Describes a key-value pair for image metadata.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Metadata |
fromJson(JsonReader jsonReader)
Reads an instance of Metadata |
| String |
metadataKey()
Get the metadata |
| String |
metadataValue()
Get the metadata |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Method Details
fromJson
public static MetadataKeyValue fromJson(JsonReader jsonReader)
Reads an instance of MetadataKeyValue from the JsonReader.
Parameters:
Returns:
Throws:
metadataKey
public String metadataKey()
Get the metadataKey property: The metadata key. Known keys emitted by the service include 'Linux.AzureSecretsProvisioning.Enabled', 'OS.Name', and '{componentName}.Version' (e.g., 'AzureGuestAgent.Version'). All values are non-sensitive configuration; no secrets, credentials, or cryptographic material transit this field.
Returns:
metadataValue
public String metadataValue()
Get the metadataValue property: The metadata value. Contains non-sensitive configuration such as capability flags ('true'/'false'), OS names ('Linux', 'Windows'), and version strings (e.g., '1.0.0').
Returns:
toJson
validate
public void validate()
Validates the instance.