Skip to content

BH.oM.Adapter.PushType

Controls which type of export should be done by the Adapter Push action.

Enum values

Name Description
FullPush Calls all CRUD methods as appropriate.
CreateOnly Uses only the Create CRUD method to export the objects. This may create duplicates if the object already exists.
CreateNonExisting Same as FullPush, but does not update pre-existing objects.
UpdateOnly Uses only the Update CRUD method to update the objects in the external software. All other objects in the model are left untouched.
UpdateOrCreateOnly Attempt to Update the objects if possible, otherwise Create them. Deletion is not included in this type.
DeleteThenCreate For all objects being Pushed, identifies their type, calls Delete to remove all of those types, then it Creates them.
AdapterDefault AdapterDefault - Picks the value hard-coded in the specific Adapter.

Code and Schema

C# implementation

C#
public enum PushType : System.Enum, System.ValueType, System.IComparable, System.ISpanFormattable, System.IFormattable, System.IConvertible

Assembly: Adapter_oM.dll

The C# enum definition is available on github:

All history and changes of the class can be found by inspection the history.

JSON Schema implementation

The object is defined as a JSON schema. You can validate a JSON instance against this schema by reference. To do this, use the schema reference below in a validator like this one.

JSON Schema
{
 "$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/Adapter_oM/PushType.json"
}

The JSON Schema is available on github here: