Patch Models
albert.core.shared.models.patch
PatchOperation
PatchDatum
Show JSON schema:
{
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
}
},
"required": [
"operation",
"attribute"
],
"title": "PatchDatum",
"type": "object"
}
Fields:
model_dump
DTPatchDatum
Show JSON schema:
{
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
}
},
"required": [
"operation",
"attribute"
],
"title": "DTPatchDatum",
"type": "object"
}
Fields:
PatchPayload
Show JSON schema:
{
"$defs": {
"PatchDatum": {
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
}
},
"required": [
"operation",
"attribute"
],
"title": "PatchDatum",
"type": "object"
}
},
"properties": {
"data": {
"items": {
"$ref": "#/$defs/PatchDatum"
},
"title": "Data",
"type": "array"
}
},
"required": [
"data"
],
"title": "PatchPayload",
"type": "object"
}
Fields:
-
data(list[PatchDatum])
model_dump
PGPatchDatum
Show JSON schema:
{
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"rowId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Rowid"
}
},
"required": [
"operation",
"attribute"
],
"title": "PGPatchDatum",
"type": "object"
}
Fields:
GeneralPatchDatum
Show JSON schema:
{
"$defs": {
"DTPatchDatum": {
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
}
},
"required": [
"operation",
"attribute"
],
"title": "DTPatchDatum",
"type": "object"
},
"PGPatchDatum": {
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"rowId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Rowid"
}
},
"required": [
"operation",
"attribute"
],
"title": "PGPatchDatum",
"type": "object"
},
"PatchDatum": {
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
}
},
"required": [
"operation",
"attribute"
],
"title": "PatchDatum",
"type": "object"
}
},
"properties": {
"operation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Operation"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"rowId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Rowid"
},
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
},
"actions": {
"anyOf": [
{
"items": {
"anyOf": [
{
"$ref": "#/$defs/PGPatchDatum"
},
{
"$ref": "#/$defs/DTPatchDatum"
},
{
"$ref": "#/$defs/PatchDatum"
}
]
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Actions"
}
},
"required": [
"attribute"
],
"title": "GeneralPatchDatum",
"type": "object"
}
Fields:
-
attribute(str) -
new_value(Any | None) -
old_value(Any | None) -
rowId(str | None) -
colId(str | None) -
actions(list[PGPatchDatum | DTPatchDatum | PatchDatum] | None) -
operation(str | None)
GeneralPatchPayload
Show JSON schema:
{
"$defs": {
"DTPatchDatum": {
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
}
},
"required": [
"operation",
"attribute"
],
"title": "DTPatchDatum",
"type": "object"
},
"GeneralPatchDatum": {
"properties": {
"operation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Operation"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"rowId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Rowid"
},
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
},
"actions": {
"anyOf": [
{
"items": {
"anyOf": [
{
"$ref": "#/$defs/PGPatchDatum"
},
{
"$ref": "#/$defs/DTPatchDatum"
},
{
"$ref": "#/$defs/PatchDatum"
}
]
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Actions"
}
},
"required": [
"attribute"
],
"title": "GeneralPatchDatum",
"type": "object"
},
"PGPatchDatum": {
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"rowId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Rowid"
}
},
"required": [
"operation",
"attribute"
],
"title": "PGPatchDatum",
"type": "object"
},
"PatchDatum": {
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
}
},
"required": [
"operation",
"attribute"
],
"title": "PatchDatum",
"type": "object"
}
},
"properties": {
"data": {
"items": {
"anyOf": [
{
"$ref": "#/$defs/PGPatchDatum"
},
{
"$ref": "#/$defs/DTPatchDatum"
},
{
"$ref": "#/$defs/GeneralPatchDatum"
},
{
"$ref": "#/$defs/PatchDatum"
}
]
},
"title": "Data",
"type": "array"
}
},
"title": "GeneralPatchPayload",
"type": "object"
}
Fields:
PGPatchPayload
A payload for a PATCH request to update a parameter group.
Show JSON schema:
{
"$defs": {
"PGPatchDatum": {
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"rowId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Rowid"
}
},
"required": [
"operation",
"attribute"
],
"title": "PGPatchDatum",
"type": "object"
},
"PatchDatum": {
"properties": {
"operation": {
"title": "Operation",
"type": "string"
},
"attribute": {
"title": "Attribute",
"type": "string"
},
"newValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
}
},
"required": [
"operation",
"attribute"
],
"title": "PatchDatum",
"type": "object"
}
},
"description": "A payload for a PATCH request to update a parameter group.",
"properties": {
"data": {
"description": "The data to be updated in the parameter group.",
"items": {
"anyOf": [
{
"$ref": "#/$defs/PGPatchDatum"
},
{
"$ref": "#/$defs/PatchDatum"
}
]
},
"title": "Data",
"type": "array"
}
},
"title": "PGPatchPayload",
"type": "object"
}
Fields:
-
data(list[PGPatchDatum | PatchDatum])