Expand description
Generic foreign-key fields, derived from the NetBox OpenAPI schema.
Auto-generated by scripts/generate.sh - do not edit.
Enums§
- Generic
FkEncoding - How a generic foreign key is encoded in a NetBox write payload.
Constants§
- GENERIC_
FK_ FIELDS (app_label.model, field, encoding)for every generic foreign key in the NetBox write API.fieldis the logical base name; forSplitit expands to<field>_typeand<field>_idon the wire, otherwise it is the property carrying the (array of)GenericObjectRequest.
Functions§
- generic_
fk_ encoding - Returns the
GenericFkEncodingforfieldonmodel(keyed asapp_label.model, e.g."dcim.cable") if it is a generic foreign key. - is_
generic_ fk - Returns
trueiffieldonmodelis a generic foreign key whose value must be encoded as a content-type reference rather than a bare id.