site_capabilities
An organisation's capabilities on its own hardware: the site agreement, their state, and requests for them.
Running analyses on the organisation's own hardware and keeping recordings at its site are off until a platform administrator turns each on. An administrator does so against the owner's acceptance of the latest published site agreement, or for an organisation the platform operates itself. An owner may ask for a capability; the request reaches the platform's administrators. An analysis its configuration keeps on the platform runs at an organisation's site only under an exception an administrator records.
CapabilityRequestCreate
pydantic-model
¶
Bases: BaseModel
An owner's request for a capability.
Fields:
-
capability(SiteCapability) -
note(str)
note = ''
pydantic-field
¶
What the organisation wants to use it for, for the administrators.
CapabilityRequestDecision
pydantic-model
¶
CapabilityRequestOut
pydantic-model
¶
Bases: BaseModel
A request for a capability, with its decision once made.
Fields:
-
id(UUID) -
org_id(UUID) -
capability(SiteCapability) -
status(CapabilityRequestStatus) -
requested_by(UUID | None) -
requested_by_name(str | None) -
note(str) -
created_at(datetime) -
decision(CapabilityRequestDecision | None)
CapabilityRequestPage
pydantic-model
¶
Bases: BaseModel
A page of an organisation's requests for capabilities, newest first.
Fields:
-
requests(list[CapabilityRequestOut]) -
total(int)
CapabilityStatus
pydantic-model
¶
Bases: BaseModel
Where an organisation stands with one capability.
Fields:
-
capability(SiteCapability) -
state(CapabilityState) -
changed_at(datetime | None) -
request_id(UUID | None)
OrganizationCapabilities
pydantic-model
¶
Bases: BaseModel
An organisation's capabilities on its own hardware, and the agreement they rest on.
Fields:
-
platform_operated(bool) -
site_agreement_version(int | None) -
acceptance(SiteAgreementAcceptance | None) -
capabilities(list[CapabilityStatus])
acceptance = None
pydantic-field
¶
The organisation's latest acceptance of the site agreement.
capabilities
pydantic-field
¶
Each capability's state, one entry per capability.
platform_operated
pydantic-field
¶
Whether the platform operates the organisation itself; such an organisation needs no acceptance of the site agreement.
site_agreement_version
pydantic-field
¶
The latest published version of the site agreement; None while none is published, when nothing can be accepted.
SiteAgreementAccept
pydantic-model
¶
SiteAgreementAcceptance
pydantic-model
¶
Bases: BaseModel
An acceptance of the site agreement, as recorded.
Fields:
-
org_id(UUID) -
version(int) -
accepted_by(UUID | None) -
accepted_by_name(str | None) -
accepted_at(datetime)
SiteExceptionCreate
pydantic-model
¶
Bases: BaseModel
A platform administrator's record that an organisation may run a platform-only analysis at its site.
It covers every version of the analysis until it expires or is revoked.
Fields:
-
analysis_config_id(AnalysisConfigIdStr) -
agreement_reference(str) -
expires_at(datetime)
SiteExceptionOut
pydantic-model
¶
Bases: BaseModel
One record of an exception: recorded, or revoked.
Records only grow. The latest for an organisation and an analysis is its state: in force while it is recorded, not revoked, and unexpired.
Fields:
-
id(UUID) -
org_id(UUID) -
analysis_config_id(str) -
revoked(bool) -
agreement_reference(str | None) -
expires_at(datetime | None) -
reason(str | None) -
recorded_by(UUID) -
recorded_at(datetime) -
in_force(bool)
agreement_reference = None
pydantic-field
¶
The agreement it rests on; None on a revocation.
expires_at = None
pydantic-field
¶
When it ends; None on a revocation.
in_force
pydantic-field
¶
Whether this record is the latest for its analysis, is not a revocation, and has not expired.
reason = None
pydantic-field
¶
Why it was revoked; None when recorded.
recorded_by
pydantic-field
¶
The administrator who recorded it.
revoked
pydantic-field
¶
Whether this record revokes the exception.
SiteExceptionPage
pydantic-model
¶
Bases: BaseModel
A page of an organisation's exception records, newest first.
Fields:
-
exceptions(list[SiteExceptionOut]) -
total(int)