pulumi/pkg/backend/httpstate/client
Germán Lena 87ad394ad8
Fix deployment settings serialization and keys consistency (#16904)
This PR fixes deployment settings serialization/deserialization:
- `repoUrl` was being incorrectly serialized as `repoURL`, which for
JSON was not a problem as it is case insensitive ([To unmarshal JSON
into a struct, Unmarshal matches incoming object keys to the keys used
by Marshal ..., preferring an exact match but also accepting a
case-insensitive match.](https://pkg.go.dev/encoding/json#Unmarshal)),
but YAML is case sensitive.
- `time.Duration` unmarshalling failed as it was not consistent with the
way the service "stringifies" the durations. I am bringing the custom
marshallers implemented under `DurationMarshaller` (it is called
`WorkflowTimeout` in the service but since there is no notion of
Workflows here, I renamed to something more explicit).
2024-08-12 19:28:13 +00:00
..
api.go retry post requests that timeout during handshake (#16576) 2024-07-03 16:22:24 +00:00
api_endpoints.go Label the batchDecrypt endpoint (#15569) 2024-03-01 21:21:43 +00:00
api_test.go httpstate/client: Support no retries 2023-06-20 10:08:20 -07:00
client.go New deployment settings wizards and environment variables management comands (#16564) 2024-07-03 20:24:26 +00:00
client_test.go Fix deployment settings serialization and keys consistency (#16904) 2024-08-12 19:28:13 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
marshal_post_1.20.go [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00
marshal_pre_1.20.go [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00