ResourceSnapshotData Class

Definition

Data on a specific resource snapshot.

public class ResourceSnapshotData : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ResourceGraph.Models.ResourceSnapshotData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ResourceGraph.Models.ResourceSnapshotData>
type ResourceSnapshotData = class
    interface IJsonModel<ResourceSnapshotData>
    interface IPersistableModel<ResourceSnapshotData>
Public Class ResourceSnapshotData
Implements IJsonModel(Of ResourceSnapshotData), IPersistableModel(Of ResourceSnapshotData)
Inheritance
ResourceSnapshotData
Derived
Implements

Properties

Name Description
Content

The resource snapshot content (in resourceChangeDetails response only).

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

SnapshotId

The ID of the snapshot.

Timestamp

The time when the snapshot was created. The snapshot timestamp provides an approximation as to when a modification to a resource was detected. There can be a difference between the actual modification time and the detection time. This is due to differences in how operations that modify a resource are processed, versus how operation that record resource snapshots are processed.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ResourceSnapshotData>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ResourceSnapshotData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<ResourceSnapshotData>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ResourceSnapshotData>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ResourceSnapshotData>.Write(ModelReaderWriterOptions)

Applies to