pulumi/.github/workflows
Justin Van Patten e193d584a3
[sdk/python] Improved dict key translation support (#6695)
This change addresses Python dictionary key translation issues. When the
type of `props` passed to the resource is decorated with `@input_type`,
the type's and resource's property name metadata will be used for dict
key translations instead of the resource's `translate_input_property`
and `translate_output_property` methods.

The generated provider SDKs will be updated to opt-in to this new
behavior:

- 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). Generated SDKs will log a warning
  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.
2021-04-06 12:25:03 -07:00
..
auto-rebase.yml Adding autorebase functionality to allow state PRs to be rebased (#6484) 2021-03-10 15:59:46 +00:00
command-dispatch.yml Adding autorebase functionality to allow state PRs to be rebased (#6484) 2021-03-10 15:59:46 +00:00
download-pulumi-cron.yml Forcing update of homebrew formulae before install pulumi in download cron 2021-02-08 11:22:16 +00:00
master.yml Allowing alphas to be part of the min version checking 2021-04-05 22:44:45 +01:00
pr.yml Move linting check into command-dispatch job (#6277) 2021-02-08 19:55:02 +00:00
prerelease.yml Ensure the correct windows release target is called 2021-04-05 22:44:46 +01:00
release.yml Fixing up go.mod and go.sum to ensure they don't continually change (#6502) 2021-03-11 20:41:45 +00:00
run-build-and-acceptance-tests.yml [sdk/python] Improved dict key translation support (#6695) 2021-04-06 12:25:03 -07:00
run-codegen-test.yml Changing the version of go.mod in sdk / pkg to be v3 2021-04-05 22:44:46 +01:00
run-docs-generation.yml Migrate the version calculation to use pulumictl (#6460) 2021-03-10 19:03:29 +00:00
trigger-container-build-event.yml [docker] allow docker container builds to pass when security advistory (#6662) 2021-03-31 15:22:58 +01:00
trigger-homebrew-event.yml Enable command dispatch workflow for dealing with PRs (#5851) 2020-12-07 19:29:04 +00:00
trigger-release-docs-event.yml Enable command dispatch workflow for dealing with PRs (#5851) 2020-12-07 19:29:04 +00:00