resource_url¶
Strategy class for resource/url.
ResourceURLConfig
¶
Bases: ResourceConfig
Resource URL strategy config.
Source code in oteapi/strategies/resource/resource_url.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
downloadUrl: HostlessAnyUrl = Field(..., description=ResourceConfig.model_fields['downloadUrl'].description)
class-attribute
instance-attribute
¶
mediaType: str = Field(..., description=ResourceConfig.model_fields['mediaType'].description)
class-attribute
instance-attribute
¶
resourceType: Literal['resource/url'] = Field('resource/url', description=ResourceConfig.model_fields['resourceType'].description)
class-attribute
instance-attribute
¶
ResourceURLStrategy
¶
Basic resource strategy targeting downloadUrl resources.
Source code in oteapi/strategies/resource/resource_url.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
resource_config: ResourceURLConfig
instance-attribute
¶
get()
¶
resource distribution.
Source code in oteapi/strategies/resource/resource_url.py
45 46 47 48 49 50 51 |
|
initialize()
¶
Initialize.
Source code in oteapi/strategies/resource/resource_url.py
41 42 43 |
|