WhatIfChange Class

Definition

Information about a single resource change predicted by What-If operation.

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

Properties

After

The predicted snapshot of the resource after the deployment is executed.

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" }.

Before

The snapshot of the resource before the deployment is executed.

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" }.

ChangeType

Type of change that will be made to the resource when the deployment is executed.

Delta

The predicted changes to resource properties.

ResourceId

Resource ID.

UnsupportedReason

The explanation about why the resource is unsupported by What-If.

Explicit Interface Implementations

IJsonModel<WhatIfChange>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<WhatIfChange>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<WhatIfChange>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<WhatIfChange>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<WhatIfChange>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to