ArrayUpdateSpec

ArrayUpdateSpec
ArrayUpdateSpec

An ArrayUpdateSpec data object type is a common superclass for supporting incremental updates to arrays.

The common code pattern is:

     class MyTypeSpec extrends ArrayUpdateSpec {
           MyTypeInfo info;
     }

The ArrayUpdateSpec contains the following:

  • operation: the type of operation being performed.
  • removeKey: In the case of a remove operation, the key value that identifies the array to be removed.
AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "operation": "string",
    "removeKey": {
        "_typeName": "string"
    }
}
operation
Required

The type of operation being performed on the specified virtual device.

removeKey
Optional

Key for the element to be removed.

Only used if the operation is "remove".