FoundryStorageEndpoint Class
Note
This is an experimental class, and may change at any time.
Immutable Foundry storage endpoint configuration.
Constructor
FoundryStorageEndpoint(*, storage_base_url: str, api_version: str = 'v1')
Parameters
| Name | Description |
|---|---|
|
storage_base_url
Required
|
Fully-qualified |
|
api_version
Required
|
Storage API version appended to every request URL. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
storage_base_url
Required
|
|
|
api_version
|
Default value: v1
|
Methods
| build_url |
Build a full storage API URL for path with |
| from_endpoint |
Create an endpoint from an explicit Foundry project endpoint URL. |
| from_env |
Create an endpoint by reading the |
build_url
Build a full storage API URL for path with api-version appended.
build_url(path: str, **extra_params: str) -> str
Parameters
| Name | Description |
|---|---|
|
path
Required
|
|
from_endpoint
Create an endpoint from an explicit Foundry project endpoint URL.
from_endpoint(endpoint: str, *, api_version: str = 'v1') -> FoundryStorageEndpoint
Parameters
| Name | Description |
|---|---|
|
endpoint
Required
|
|
Keyword-Only Parameters
| Name | Description |
|---|---|
|
api_version
|
Default value: v1
|
from_env
Create an endpoint by reading the FOUNDRY_PROJECT_ENDPOINT environment variable.
from_env(*, api_version: str = 'v1') -> FoundryStorageEndpoint
Keyword-Only Parameters
| Name | Description |
|---|---|
|
api_version
|
Default value: v1
|