ResourceChangeDataAfterSnapshot Class

Definition

The snapshot after the change.

public class ResourceChangeDataAfterSnapshot : Azure.ResourceManager.ResourceGraph.Models.ResourceSnapshotData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ResourceGraph.Models.ResourceChangeDataAfterSnapshot>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ResourceGraph.Models.ResourceChangeDataAfterSnapshot>
type ResourceChangeDataAfterSnapshot = class
    inherit ResourceSnapshotData
    interface IJsonModel<ResourceChangeDataAfterSnapshot>
    interface IPersistableModel<ResourceChangeDataAfterSnapshot>
Public Class ResourceChangeDataAfterSnapshot
Inherits ResourceSnapshotData
Implements IJsonModel(Of ResourceChangeDataAfterSnapshot), IPersistableModel(Of ResourceChangeDataAfterSnapshot)
Inheritance
ResourceChangeDataAfterSnapshot
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<ResourceChangeDataAfterSnapshot>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ResourceChangeDataAfterSnapshot>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IJsonModel<ResourceSnapshotData>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from ResourceSnapshotData)
IJsonModel<ResourceSnapshotData>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceSnapshotData)
IPersistableModel<ResourceChangeDataAfterSnapshot>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ResourceChangeDataAfterSnapshot>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ResourceChangeDataAfterSnapshot>.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