Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
In this reference, each generator is identified by its name and, in parenthesis, its generator ID. You use the generator ID to identify the generator in the API.
For each generator, this reference shows the structure of a link object, and provides an example of a replacement object.
Additional resources:
Structure of a generator assignment
How the Tonic Structural API represents a generator assignment and configuration.
Generated Structural API documentation
Generated document with detailed descriptions of the objects and fields.
Generator reference
Detailed descriptions of the generators and their available configuration options.
The Algebraic generator identifies the algebraic relationship between three or more numeric values and generates new values to match. At least one of the values must be a non-integer.
The Algebraic generator must be linked to at least two other columns.
The Algebraic generator does not support consistency. You cannot configure differential privacy.
There is no generator-specific configuration.
The following example replacement contains three linked columns that are assigned the Algebraic generator.
The Array Character Scramble generator is intended for array values. It replaces letters with random other letters, and numbers with random other numbers. It preserves punctuation and whitespace from the original value.
The Array Character Scramble generator can be self-consistent, but not consistent with another column. You cannot configure differential privacy.
The metadata
object is populated from the BaseMetadata
object.
There is no generator-specific configuration.
The following example replacement configures a column to use the built-in generator preset for the Array Character Scramble generator. The generator is not consistent.
Requires the Advanced API. The Advanced API requires an Enterprise license.
When using the API to assign generators, you use the generator identifier.
To retrieve the list of generators, use:
In the results, the message body is an array of GeneratorMetadataResponseModel
objects.
The information for each generator includes the generator ID. It also specifies whether the generator supports configuration options such as linking, consistency, differential privacy configuration, and partitioning.
The Alphanumeric String Key generator can be applied to primary key columns. It generates unique alphanumeric strings of the same length as the input. For example, for the origin value ABC123, the output value is a six-character alphanumeric string such as D24N05.
The Alphanumeric String Key generator can be self-consistent, but not consistent with another column. You cannot configure differential privacy.
The metadata
object is populated from the BaseMetadata
object.
There is no generator-specific configuration.
The following example replacement configures a column to use the built-in generator preset for the Alphanumeric String Key generator. The generator is not consistent.
The generator is a composite generator. It is a version of the JSON Mask generator that can be used for array values. It runs a selected generator on values that match a specified JSONPath.
For the Array JSON Mask generator, you provide a link object for each sub-generator configuration.
The generator does not itself support consistency or differential privacy.
The metadata
object is populated from the object. For the Array JSON Mask generator, metadata
includes:
pathExpression
, which is the path expression that identifies the value to apply the sub-generator to.
The types of values to apply the sub-generator to.
The subGeneratorMetadata
object, which identifies and configures the sub-generator.
Here is the basic structure of a link object for an Array JSON Mask sub-generator.
The following example replacement applies the built-in generator preset for the Geo generator to the value at the specified path expression.
The configuration for the Geo generator indicates that it is a latitude value.
The generator creates values at the same frequency and using the same values, including NULL values, as the underlying data. In other words, it shuffles the existing values within a field.
The Categorical generator does not support consistency. You can configure differential privacy. You can link columns.
The metadata
object is populated from the object. It contains the epsilon
field, which provides the .
The following example replacement shows a single, un-linked column. Differential privacy is enabled, and epsilon
is set to 1.
Requires the Advanced API. The Advanced API requires an Enterprise license.
The generator is a version of the Regex Mask generator that can be used for array values.
It uses regular expressions to parse strings and replace specified substrings with the output of specified generators. The parts of the string to replace are specified inside unnamed top-level capture groups.
In the Array Regex Mask generator, each link object identifies a regular expression and the generators to apply to the resulting capture groups.
The generator does not in itself support consistency or allow you to configure differential privacy.
The metadata
object for each link object is populated from the object, and includes:
Whether to replace all matches or only the first match.
The regular expression used to identify the capture groups to replace.
The list of generator types to apply to each capture group. The first sub-generator is applied to the first capture group, the second generator to the second group, and so on.
In the captureGroupMetadata
object, the configuration for each generator in captureGroupSubGenerators
. The sequence of the entries in captureGroupMetadata
must match the sequence of the generators in captureGroupSubGenerators
.
The following example provides a regex pattern that produces a single capture group.
For that capture group, the Constant generator is applied. The capture group value is replaced with test_value
.