handle_resource_reference method

handle_resource_reference

This method is responsible for handling the resource reference. In this method, you can set what the reference to the resource being handled will look like.

Returns

A string that will be written to the parent resource and which represents a reference to the resource that is currently being handled.

def handle_resource_reference(self, resource, context):
    ...
ParameterTypeDescription
resourceResourceThe Resource which will be handled.
contextResourceHandlingContextResource handling context.

Exceptions

ExceptionDescription
InvalidOperationExceptionRaised if Resource.output_url is and Resource.status is ResourceStatus.SAVED. Resource.output_url should be specified for saved resource because otherwise it is impossible to specify the correct reference in the resources referencing this one.

See Also