Spec for an output task port
Attributes
human_name: Optional
is_optional: bool
resource_types: List
short_description: Optional
validators: List
Functions
__init__
summary
resource_types :
Union
_description_
is_optional :
bool
- False
tell that this output may return None or not being provided
sub_class :
bool
- False
When true, it tells that the resource_types
are compatible with any child class of the provided resource type
is_constant :
bool
- False
When true, this tells the system that the output resource was not modified from the input resource
and it does not need to create a new resource after the task
human_name :
Optional
_description_
short_description :
Optional
_description_
check_resource_types
get_default_resource_type
return the first default type
Return type :
Type
get_resource_type_tuples
Return type :
Tuple
get_resources_human_names
Return type :
str
is_compatible_with_in_spec
in_spec :
IOSpec
Return type :
bool
is_compatible_with_resource_type
resource_type :
Type
Return type :
bool
is_compatible_with_resource_types
return True if one of the resource_types is compatible with the this spec
resource_types :
Iterable
Return type :
bool
is_constant_out
Return type :
bool
is_subclass_out
Return type :
bool
to_dto
Return type :
IOSpecDTO
validate_resource
Validate a resource with the validators
resource :
Resource
from_dto @classmethod
dto :
IOSpecDTO
Return type :
OutputSpec