Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate "expand" and "flatten" functions for associated external typ…
…es linked to list, map, set, single nested attributes and blocks (#32) * Bumping terraform-plugin-codegen-spec to c6dffeb (#31) * Updating IR JSON to use import object for associated_external_type rather than an array of objects (#31) * Initial implementation for generation of to-from (expand-flatten) functions (#31) * Add associated external type to single nested block in ir.json and update test data (#31) * Remove unused templates (#31) * Adding processing for bool with associated external type (#31) * Using a struct for attributes nested within a block (#31) * Adding type-specific fields for use with model object template (#31) * Adding types for use with attribute fields and making the template for use with primitive attributes generic (#31) * Using direct mapping for primitives in expand and flatten functions (#31) * Updated ir.json to include associated external type defined on attribute within single nested block that has an associated external type (#31) * Only suffix with newline if not already suffixed (#31) * Removing handling of nested primitives with associated external type from model object template (#31) * Remove processing of primitives with associated external type (#31) * Remove recursion, and only process top-level primitive attributes within nested attributes and nested blocks * Set-up generation of expand and flatten functions for single nested (#31) * Renaming template and fixing tests (#31) * Add handling for list nested attribute/block with associated external type (#31) * Add handling for map nested attribute with associated external type (#31) * Add handling for set nested attribute/block with associated external type (#31) * Add handling for list, map, set, single nested attributes and blocks for provider and resource (#31) * Wiring-up generation of expand and flatten for provider and resources (#31) * Loading imports for associated external type for list, map, set, single nested attributes and blocks (#31) * Returning error diagnostic when types.List, types.Map, types.Set or types.Object passed into expand function is unknown (#31) * Add handling in the expand functions for objects within a list, map or set that are unknown (#31) * Add handling in the flatten functions for api objects that could be nil (#31) * Consolidating logic (#31) * Refactored adding Imports() method to AssocExtType and switching attributes to implementing AssocExtType (#31)
- Loading branch information