Table of Contents

Class PatchObjectModel

Namespace
DuetAPI.Commands
Assembly
DuetAPI.dll

Apply a full patch to the object model. May be used only in non-SPI mode

[RequiredPermissions(SbcPermissions.ObjectModelReadWrite)]
public class PatchObjectModel : Command
Inheritance
PatchObjectModel
Derived
Inherited Members

Constructors

PatchObjectModel()

public PatchObjectModel()

Exceptions

ArgumentException

Invalid key specified

InvalidOperationException

DCS is not running in non-SPI mode

Properties

Key

Key to update

public string Key { get; set; }

Property Value

string

Exceptions

ArgumentException

Invalid key specified

InvalidOperationException

DCS is not running in non-SPI mode

Patch

JSON patch to apply

public JsonElement Patch { get; set; }

Property Value

JsonElement

Exceptions

ArgumentException

Invalid key specified

InvalidOperationException

DCS is not running in non-SPI mode

Methods

UpdateFromJson(JsonElement)

Update this instance from a given JSON element

public override void UpdateFromJson(JsonElement jsonElement)

Parameters

jsonElement JsonElement

Element to update this intance from

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data

UpdateFromJsonReader(ref Utf8JsonReader)

Update this instance from a given JSON element

public override void UpdateFromJsonReader(ref Utf8JsonReader reader)

Parameters

reader Utf8JsonReader

Reader to update this intance from

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data

See Also