bayesline.api#
Description of the public-facing API for bayesline.
Core#
Abstract base class for Bayesline API operations. |
|
Abstract base class for Bayesline API operations. |
|
Abstract base class for Bayesline API operations. |
Authentication API#
|
An individual ACL entry granting specific permissions to a principal for a resource. |
Base exception for ACL-related errors. |
|
Raised when ACL data fails validation. |
|
|
Request model for creating a new ACL entry. |
|
Request model for adding a user to a group. |
|
Request model for creating a new user group. |
|
Request model for assigning a role to a user. |
Raised when creating a group fails. |
|
Raised when deleting a group fails. |
|
|
Represents a user's membership in a group. |
Raised when adding or removing users from groups fails. |
|
Raised when updating a group fails. |
|
Raised when a user attempts an action they don't have permission for. |
|
Raised when granting a permission fails. |
|
|
Permission levels for resource access. |
Raised when a principal (user/group/role) referenced in ACL operations doesn't exist. |
|
|
Types of principals that can be granted permissions. |
Raised when a resource referenced in ACL operations doesn't exist. |
|
|
Summary of a user's permissions for a specific resource. |
|
Types of resources that can be protected by ACL. |
Raised when assigning or revoking roles fails. |
|
|
Built-in system roles with predefined permissions. |
|
A grant of access to a resource that the current user made to a principal. |
|
Summary of the resources that are shared with others. |
|
Request model for updating an existing ACL entry. |
|
Request model for updating an existing user group. |
|
A group of users for simplified permission management. |
|
Complete summary of a user's permissions across all resources. |
|
Represents a user's system role assignment. |
|
Expand assigned roles into every role they fulfil via the hierarchy. |
|
Return whether the held roles satisfy |
Abstract base class for asynchronous ACL-based permissionining API operations. |
|
Abstract base class for synchronous ACL-based permissionining API operations. |
|
Abstract base class for asynchronous feature flag API operations. |
|
Abstract base class for feature flag API operations. |
|
Exception raised when features could not be read. |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
|
Base for the constants naming an application's features. |
|
An enum whose class and member names are stored as durable identities. |
|
A feature as it stands in this deployment. |
|
A feature definition, plus what an application declares alongside it. |
|
What a feature is, as the application that owns it states it. |
|
The reason why a feature is enabled or disabled. |
|
How a feature resolved for one user, and what it was resolved from. |
|
A grant as it sits in the registry, for auditing who was given what. |
Runtime representation of an annotated type. |
|
|
One feature identity, as the registry holds it. |
|
Rekey a mapping by the canonical identity of each key. |
|
A grant, where it came from, and whether it is the one that decided. |
|
Where a grant that bears on a feature came from. |
|
A request to update a feature value. |
|
A value of a feature, i.e. its enabled state along with other info. |
|
A grant the value was read from, and who holds it. |
|
A policy the value was read from, and what that authority said. |
|
What one principal is granted on a feature. |
|
Who wrote a stored grant, and when. |
|
A policy about what a feature is, holding for every user. |
|
A grant on a feature, together with where it came from. |
|
Who a policy comes from, and so how far it outranks another. |
|
Anything a grant can be addressed to. |
|
Build a grant addressed to everyone who fulfils a role. |
Abstract base class for asynchronous feature flag read API operations. |
|
|
The properties of a user. |
Settings API#
Concrete base for |
|
Abstract base class for settings registries. |
|
Abstract base class for typed settings registries. |
|
Concrete base for |
|
|
Holds mappings of globally unique settings identifiers to other properties. |
Abstract base class for settings registries. |
|
Abstract base class for typed settings registries. |
|
|
The result of a single change-owner operation. |
|
The result of a batch change-owner operation. |
Raised when the owner of a settings object could not be changed. |
|
Raised when a settings object could not be deleted from the registry. |
|
Raised when a settings object could not be permissioned. |
|
Raised when a settings object could not be saved to the registry. |
|
|
Settings bound to a dataset. |
Exception raised for dataset-related errors. |
|
|
The result of a single delete operation. |
|
The result of a batch delete operation. |
|
Empty settings menu implementation. |
|
The result of a single item operation, e.g. delete on a single settings object. |
|
The status of a single item operation, e.g. delete on a single settings object. |
|
The result of a single permission operation. |
|
The result of a batch permission operation. |
|
Raw settings data structure. |
|
The result of a single save operation. |
|
The result of a batch save operation. |
|
A settings result that exists but is invalid. |
|
A settings result that could not be found. |
|
A settings result that exists but the current user does not have read permissions. |
|
Base class for all settings objects. |
|
Abstract base class for settings menus. |
|
Metadata for settings objects. |
int([x]) -> integer int(x, base=10) -> integer |
|
Raised when an unexpected error occurs in the settings registry. |
|
|
The result of a batch operation, e.g. a batch delete operation. |
|
A settings transfer object. |
|
A settings result that exists and is valid. |
|
Like |
|
Convert a |
Built-in mutable sequence. |
|
Built-in mutable sequence. |
|
Built-in mutable sequence. |
|
|
Apply sequential migrations to raw_json and strip the version key. |
|
Migrate and validate persisted raw JSON into a Settings instance. |
|
Stamp the current schema version into raw_json for persistence. |
|
Return |
|
Validate that a settings type has a complete chain of migrations. |
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
Tasks API#
Abstract base class representing a task that produces a result of type T. |
|
Abstract base class for synchronous task API operations. |
|
|
Abstract base class representing a task that produces a result of type T. |
Exception raised when a task operation fails. |
|
|
The progress of a task. |
|
Response model for task operations. |
|
Abstract base class for synchronous task API operations. |
|
The state of a task. |