Skip to main content

URLPathConstructor

This class implements ReferenceConstructor that assumes paths are URL-compatible.

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)

Constructs a new DataReference by combining a base reference with nested keys, assuming URL-compatible paths. This method is used to build a complete reference path from a starting point and additional path segments.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for cancellation and deadlines.
reference[DataReference](datareference.md?sid=flytestdlib_storage_datareference)The base DataReference to which nested keys will be appended.
nestedKeysstringA string representing the nested keys or path segments to append to the base reference.

Returns

TypeDescription
([DataReference](datareference.md?sid=flytestdlib_storage_datareference), error)A new DataReference representing the combined path, and an error if the construction fails.