PaloAltoNetworks / pan-os-codegen

Generator for pango SDK and panos Terraform Provider
MIT License
4 stars 0 forks source link

feat: Add support for computed and optional & computed attributes #125

Closed kklimonda-cl closed 1 month ago

kklimonda-cl commented 1 month ago

Terraform has a concept of optional attributes, where optional attributes can be left null, and will use default values. Another concept is computed attributes - attributes that are set by the provider and cannot be changed by the user. Finally, optional attributes must be marked as computed.

This change adds a way to mark some parameters in the specification as computed (e.g. uuid parameters) and properly marks attributes with default values as optional+computed.