Skip to content

Commit

Permalink
add custom domains attribute #66
Browse files Browse the repository at this point in the history
  • Loading branch information
aliel committed Jun 2, 2023
1 parent 7b39966 commit 2934696
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aleph_message/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions aleph_message/models/execution/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 2934696

Please sign in to comment.