ReferenceConstructor
This interface defines methods for constructing data references. It provides functionality to create a new data reference that matches the storage structure and to construct a data reference from a signed URL.
Methods
ConstructReference()
@classmethod
def ConstructReference(
ctx: context.Context,
reference: [DataReference](datareference.md?sid=flytestdlib_storage_datareference),
nestedKeys: string
) - > [DataReference](datareference.md?sid=flytestdlib_storage_datareference), error
ConstructReference creates a new dataReference that matches the storage structure.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, used for cancellation and deadlines. |
| reference | [DataReference](datareference.md?sid=flytestdlib_storage_datareference) | The base data reference to construct from. |
| nestedKeys | string | Additional keys to nest within the data reference path. |
Returns
| Type | Description |
|---|---|
[DataReference](datareference.md?sid=flytestdlib_storage_datareference), error | A new DataReference object that matches the storage structure, or an error if the construction fails. |