Metadata values are used throughout DRP for both UX and operational controls. You can find them in the object hierarchy as <Object>.Meta.
Models can contain other common fields that may be present for user edification and API tracking purposes, but that do not affect how dr-provision will use or interpret changes to the objects.
Field
Description
ReadOnly
A boolean value that indicates whether the object can be modified via the API. This field is set to True if the object was loaded from a read-only content layer.
Description
A brief description for the object that is only one line long.
Documentation
A longer description of what the object is for and how it should be used that is generally a few lines to a few paragraphs long.
Models also contain common fields that track the validity and availability of individual objects.
Field
Description
Validated
A boolean value that indicates whether a given object is semantically valid or not. Semantically invalid objects will never be saved, and if one is returned via the API, it will be populated with a list of messages indicating what is invalid.
Available
a boolean value that indicates whether the object is available to be used, not whether it is semantically valid. An object that is invaild can never be available, while an object that is not available can be semantically valid.
Errors
a list of strings that contain any error messages that occurred in the process of checking whether a given object is valid and available. Error messages are designed to be human readable.
Note
Objects are checked for validity and availability on initial startup of DRP (when they are all loaded into memory), and thereafter every time they are updated. You must check each object returned from an API interaction to ensure that it is valid and available before using it.
There are several meta fields that can be used to adjust on screen display for params. The following items are commonly used on all object types to provide UX rendering guides.
Field
Description
password: [anyvalue]
Renders as password that is not encrypted, but obfuscated.
clipboard: [anyvalue]
Provides a copy button so user can copy the param contents to clipboard.