Skip to main content

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

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for cancellation and deadlines.
reference[DataReference](datareference.md?sid=flytestdlib_storage_datareference)The base data reference to construct from.
nestedKeysstringAdditional keys to nest within the data reference path.

Returns

TypeDescription
[DataReference](datareference.md?sid=flytestdlib_storage_datareference), errorA new DataReference object that matches the storage structure, or an error if the construction fails.