OperationOutputGenerator

interface OperationOutputGenerator

A class that generates OperationOutput to compute the operationIds. OperationOutputGenerator works with a collection of OperationDescriptor for implementation that need to batch compute the operationIds. For an example to send all the operation at once to a backend for whitelisting.

If you don't need batch compute, use OperationOutputGenerator.Default

Types

Link copied to clipboard
class Default(operationIdGenerator: OperationIdGenerator) : OperationOutputGenerator

Functions

Link copied to clipboard
abstract fun generate(operationDescriptorList: Collection<OperationDescriptor>): OperationOutput

Generate

Properties

Link copied to clipboard
abstract val version: String

A version that is used as input of the Gradle task. Since OperationOutputGenerator cannot easily be serialized and influences the output of the task, we need a way to mark the task out-of-date when the implementation changes.

Inheritors

Link copied to clipboard