Response

class Computation(uuid: str, name: str, owner: Owner, code_provider: CodeProvider, data_providers: List[DataProvider], result_consumers: List[ResultConsumer], enclave: Enclave, runs: List[Run], my_roles: List[Role], created_at: str)

Computation dataclass representing JSON response.

uuid: str
name: str
owner: Owner
code_provider: CodeProvider
data_providers: List[DataProvider]
result_consumers: List[ResultConsumer]
enclave: Enclave
runs: List[Run]
my_roles: List[Role]
created_at: str
class Owner(uuid: str, email: str)

Subdict in Computation.owner.

uuid: str
email: str
class CodeProvider(uuid: str, email: str, public_key: Optional[PublicKey], code_uploaded_at: Optional[str], symmetric_key_uploaded_at: Optional[str])

Subdict in Computation.code_provider.

uuid: str
email: str
public_key: Optional[PublicKey]
code_uploaded_at: Optional[str]
symmetric_key_uploaded_at: Optional[str]
class DataProvider(uuid: str, email: str, public_key: Optional[PublicKey], starting_uploading_at: Optional[str], done_uploading_at: Optional[str], symmetric_key_uploaded_at: Optional[str])

Subdict in Computation.data_providers.

uuid: str
email: str
public_key: Optional[PublicKey]
starting_uploading_at: Optional[str]
done_uploading_at: Optional[str]
symmetric_key_uploaded_at: Optional[str]
class ResultConsumer(uuid: str, email: str, public_key: Optional[PublicKey], symmetric_key_uploaded_at: Optional[str], result_downloaded_at: Optional[str])

Subdict in Computation.result_consumers.

uuid: str
email: str
public_key: Optional[PublicKey]
symmetric_key_uploaded_at: Optional[str]
result_downloaded_at: Optional[str]
class Enclave(identity: Optional[EnclaveIdentity])

Subdict in Computation.enclave.

identity: Optional[EnclaveIdentity]
class EnclaveIdentity(public_key: bytes, manifest: Optional[str], quote: str)

Subdict in Computation.enclave.identity.

public_key: bytes
manifest: Optional[str]
quote: str
class Run(uuid: str, created_at: str, ended_at: str, exit_code: int, output: str, results_fetches_datetimes_by_result_consumers_uuid: Dict[str, str])

Subdict in Computation.run.

uuid: str
created_at: str
ended_at: str
exit_code: int
output: str
results_fetches_datetimes_by_result_consumers_uuid: Dict[str, str]
class PublicKey(fingerprint: bytes, content: str, uploaded_at: str)

Subdict in Computation.enclave.identity.public_key.

fingerprint: bytes
content: str
uploaded_at: str
class Role(value)

Subdict in Computation.my_roles.

ComputationOwner = 'ComputationOwner'
CodeProvider = 'CodeProvider'
DataProvider = 'DataProvider'
ResultConsumer = 'ResultConsumer'
class ComputationStatus(status: ComputationStatusType, enclave_state: Optional[EnclaveState])

Status of the computation.

status: ComputationStatusType
enclave_state: Optional[EnclaveState]
has_enclave_identity() bool

Check if the status means that the computation has an identity.

has_result() bool

Check if the status means that the computation has an run result.

class ComputationStatusType(value)

State enum of a computation.

NotStarted = 'NotStarted'
Archived = 'Archived'
Removed = 'Removed'
Started = 'Started'
class EnclaveState(state: EnclaveStateType, inner: Optional[dict])

State of the computation enclave.

state: EnclaveStateType
inner: Optional[dict]
class EnclaveStateType(value)

State enum of an enclave.

Init = 'Init'
IdentityProcessing = 'IdentityProcessing'
SetupInput = 'SetupInput'
Running = 'Running'
Success = 'Success'
Failure = 'Failure'