mirror of https://github.com/pulumi/pulumi.git
c504ccc12d
This change updates the Python SDK codegen to opt-in to the new casing translation behavior, which will use the passed-in props type's property name metadata for translations, rather than calling the resource's `translate_input_property` and `translate_output_property` methods. - FIX: Keys in user-defined dicts will no longer be unintentionally translated/modified. - BREAKING: Dictionary keys in nested output classes are now consistently snake_case. If accessing camelCase keys from such output classes, move to accessing the values via the snake_case property getters (or snake_case keys). A warning will be logged when accessing camelCase keys. When serializing inputs: - If a value is a dict and the associated type is an input type, the dict's keys will be translated based on the input type's property name metadata. - If a value is a dict and the associated type is a dict (or Mapping), the dict's keys will _not_ be translated. When resolving outputs: - If a value is a dict and the associated type is an output type, the dict's keys will be translated based on the output type's property name metadata. - If a value is a dict and the associated type is a dict (or Mapping), the dict's keys will _not_ be translated. |
||
---|---|---|
.. | ||
dotnet | ||
go/plant | ||
nodejs | ||
python/pulumi_plant | ||
schema.json |