decentriq_platform.archv2.session
Classes
SessionV2
SessionV2(
client: Client,
connection: Connection,
)
Class for managing the communication with an enclave.
Session
instances should not be instantiated directly but rather
be created using a Client
object using decentriq_platform.Client.create_session_v2
.
create_policy
def create_policy(
self,
policy: ReleasePolicy,
) ‑> str
Create a release policy and return the policy ID.
create_secret
def create_secret(
self,
secret: Secret,
) ‑> str
Store a secret in the user's own enclave-protected secret store
get_dataset_secret_id
def get_dataset_secret_id(
self,
manifest_hash: str,
) ‑> str
get_secret
def get_secret(
self,
secret_id: str,
) ‑> Tuple[decentriq_platform.archv2.secret.Secret, int]
remove_secret
def remove_secret(
self,
secret_id: str,
expected_cas_index: int,
) ‑> bool
send_authenticated_request
def send_authenticated_request(
self,
authenticated_request: AuthenticatedRequest,
) ‑> gcg_pb2.AuthenticatedResponse
send_data_room_state_action_request
def send_data_room_state_action_request(
self,
data_room_id: str,
action: JSONType,
) ‑> Union[Dict[str, JSONType], List[JSONType], str, int, float, bool, ForwardRef(None)]
Send a DCR action request.
send_export_result_as_dataset_request
def send_export_result_as_dataset_request(
self,
job_id: str,
task_result_hash: str,
zip_path: Optional[str],
) ‑> Tuple[str, str, str]
Export a result as a dataset.
send_get_verification_key_request
def send_get_verification_key_request(
self,
) ‑> bytes
Retrieve the verification key for a DCR.
send_retrieve_result_encryption_key_request
def send_retrieve_result_encryption_key_request(
self,
job_id: str,
task_result_hash: str,
) ‑> Tuple[str, bytes]
Retrieve the manifest hash and encryption key for a result.
send_secret_store_request
def send_secret_store_request(
self,
request: SecretStoreRequest,
) ‑> secret_store_pb2.SecretStoreResponse
update_secret_acl
def update_secret_acl(
self,
secret_id: str,
new_acl: v0.SecretStoreEntryAcl,
expected_cas_index: int,
) ‑> bool
Update a secret ACL