From 293469644c554bda420c9f89c3e269319ef64445 Mon Sep 17 00:00:00 2001 From: aliel Date: Fri, 2 Jun 2023 19:31:55 +0200 Subject: [PATCH] add custom domains attribute #66 --- aleph_message/models/__init__.py | 3 +++ aleph_message/models/execution/abstract.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/aleph_message/models/__init__.py b/aleph_message/models/__init__.py index b499a7e..3d0bdc5 100644 --- a/aleph_message/models/__init__.py +++ b/aleph_message/models/__init__.py @@ -154,6 +154,9 @@ class StoreContent(BaseContent): size: Optional[int] = None # Generated by the node on storage content_type: Optional[str] = None # Generated by the node on storage ref: Optional[str] = None + domains: Optional[List[str]] = Field( + description="Custom domains to link. @see https://docs.aleph.im/computing/domains/ fore more details", + ) class Config: extra = Extra.allow diff --git a/aleph_message/models/execution/abstract.py b/aleph_message/models/execution/abstract.py index 846d743..510237a 100644 --- a/aleph_message/models/execution/abstract.py +++ b/aleph_message/models/execution/abstract.py @@ -19,6 +19,9 @@ class BaseExecutableContent(HashableModel, BaseContent, ABC): allow_amend: bool = Field(description="Allow amends to update this function") metadata: Optional[Dict[str, Any]] = Field(description="Metadata of the VM") + domains: Optional[List[str]] = Field( + description="Custom domains to link. @see https://docs.aleph.im/computing/domains/ fore more details", + ) variables: Optional[Dict[str, str]] = Field( default=None, description="Environment variables available in the VM" )