Search documentation
karat

+

K

User Documentation ↗

transforms.api.OutputSet

class transforms.api.OutputSet(aliases=None, sever_permissions=False, description=None)

Specification for a list of transform outputs.

  • Parameters:
    • aliases (list of str , optional) – A list of dataset resource identifiers (RIDs) or the absolute Compass paths of the datasets. If not specified, the parameter is unbound. Empty lists are not allowed.

    • sever_permissions (bool , optional) –

      If True, severs the dataset’s permissions from their input’s permissions. Ignored if the parameter is unbound.

      Deprecated since version 3.85.0: Use transforms.api.Input.stop_propagating or transforms.api.Input.stop_requiring instead

    • description (str , optional) – Output description. Note that this feature is not implemented yet.

static instance(context, json_value)

Creates a parameter instance using the raw JSON value from JobSpec parameters and specific context.

The return value is injected in the transform compute function.

  • Parameters:
    • context (ParamContext) – A context object with properties that might be required for creating an instance.
    • json_value (any) – Any raw value deserialized from JobSpec parameters.

History

  • Added in version 1.53.0.

property json_value

Returns the JSON value for this parameter to put in JobSpec.

If the return value is None, the parameter is considered unbound. If any transform’s parameter is unbound, the transform is considered to be unbound. For unbound transforms, the JobSpec is not published.

output_results(instance, **kwargs)

Generates a map from output RIDs to TransformsOutputResult. Results are merged into a TransformJobResult.

  • Parameters: instance – An object of the type generated by instance().

property schema

Returns JSON schema for parameters of this type. Must return a valid JSON schema.