bayesline.api.ChangeOwnerItemResult#
- pydantic model bayesline.api.ChangeOwnerItemResult#
The result of a single change-owner operation.
Show JSON schema
{ "title": "ChangeOwnerItemResult", "description": "The result of a single change-owner operation.", "type": "object", "properties": { "name_or_id": { "anyOf": [ { "type": "string" }, { "type": "integer" } ], "description": "The name or identifier of the item as it was provided to the operation.", "title": "Name Or Id" }, "status": { "$ref": "#/$defs/ItemStatus", "description": "The status of the item operation." }, "message": { "default": "", "description": "The human readable message of the item's operation result.", "title": "Message", "type": "string" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "The name of the item if available. Will always be available if the operation was successful.", "title": "Name" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "The identifier of the item if available. Will always be available if the operation was successful.", "title": "Id" }, "short_message": { "default": "", "description": "A short message of the item's operation result which can be used for summary messages. E.g. if a user could not be found, the short message should be the input of the user that could not be found.", "title": "Short Message", "type": "string" }, "previous_owner": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The owner the settings object belonged to before the move.", "title": "Previous Owner" }, "new_owner": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The owner the settings object belongs to after the move.", "title": "New Owner" }, "moved": { "description": "Qualified names (under the new owner) of every settings object moved for this item: the item itself plus, when references are included, its moved references.", "items": { "type": "string" }, "title": "Moved", "type": "array" }, "updated_referrers": { "description": "Qualified names of settings objects whose stored references were rewritten to the moved settings' new qualified names.", "items": { "type": "string" }, "title": "Updated Referrers", "type": "array" } }, "$defs": { "ItemStatus": { "description": "The status of a single item operation, e.g. delete on a single settings object.", "enum": [ "not_found", "invalid_type", "forbidden", "user_not_found", "group_not_found", "invalid", "conflict", "success" ], "title": "ItemStatus", "type": "string" } }, "additionalProperties": false, "required": [ "name_or_id", "status", "name", "id" ] }
- Config:
extra: str = forbid
frozen: bool = True
- Fields:
moved (list[str])new_owner (str | None)previous_owner (str | None)updated_referrers (list[str])
- field previous_owner: str | None = None#
The owner the settings object belonged to before the move.
- field new_owner: str | None = None#
The owner the settings object belongs to after the move.
- field moved: list[str] [Optional]#
Qualified names (under the new owner) of every settings object moved for this item: the item itself plus, when references are included, its moved references.
- field updated_referrers: list[str] [Optional]#
Qualified names of settings objects whose stored references were rewritten to the moved settings’ new qualified names.