Class ResourceMetadata
Metadata fields common to all resources, including identity and versioning.
public sealed class ResourceMetadata
- Inheritance
-
ResourceMetadata
- Inherited Members
Properties
Annotations
Free-form annotations for tooling and audit metadata.
[JsonPropertyName("annotations")]
public Dictionary<string, string>? Annotations { get; init; }
Property Value
CreatedAt
Timestamp when the resource was created.
[JsonPropertyName("createdAt")]
public DateTimeOffset? CreatedAt { get; init; }
Property Value
Generation
Generation number that increments when spec changes.
[JsonPropertyName("generation")]
public long? Generation { get; init; }
Property Value
- long?
Id
Stable resource identifier.
[JsonPropertyName("id")]
public string? Id { get; init; }
Property Value
Labels
Key-value labels for selection and grouping.
[JsonPropertyName("labels")]
public Dictionary<string, string>? Labels { get; init; }
Property Value
Name
Human-readable name within the namespace.
[JsonPropertyName("name")]
public string? Name { get; init; }
Property Value
Namespace
Namespace for grouping resources.
[JsonPropertyName("namespace")]
public string? Namespace { get; init; }
Property Value
ResourceVersion
Monotonic resource version for optimistic concurrency.
[JsonPropertyName("resourceVersion")]
public string? ResourceVersion { get; init; }
Property Value
UpdatedAt
Timestamp when the resource was last updated.
[JsonPropertyName("updatedAt")]
public DateTimeOffset? UpdatedAt { get; init; }