ResourceChangeDataBeforeSnapshot Class

Definition

The snapshot before the change.

public class ResourceChangeDataBeforeSnapshot : Azure.ResourceManager.ResourceGraph.Models.ResourceSnapshotData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ResourceGraph.Models.ResourceChangeDataBeforeSnapshot>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ResourceGraph.Models.ResourceChangeDataBeforeSnapshot>
type ResourceChangeDataBeforeSnapshot = class
    inherit ResourceSnapshotData
    interface IJsonModel<ResourceChangeDataBeforeSnapshot>
    interface IPersistableModel<ResourceChangeDataBeforeSnapshot>
Public Class ResourceChangeDataBeforeSnapshot
Inherits ResourceSnapshotData
Implements IJsonModel(Of ResourceChangeDataBeforeSnapshot), IPersistableModel(Of ResourceChangeDataBeforeSnapshot)
Inheritance
ResourceChangeDataBeforeSnapshot
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" }.

(Inherited from ResourceSnapshotData)
SnapshotId

The ID of the snapshot.

(Inherited from ResourceSnapshotData)
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.

(Inherited from ResourceSnapshotData)

Methods

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

Explicit Interface Implementations

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

Applies to