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
| 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 DataReference to which nested keys will be appended. |
| nestedKeys | string | A string representing the nested keys or path segments to append to the base reference. |
Returns
| Type | Description |
|---|---|
([DataReference](datareference.md?sid=flytestdlib_storage_datareference), error) | A new DataReference representing the combined path, and an error if the construction fails. |