pulumi/sdk/go/common
Pat Gavlin 2f0dba23ab
Fix resource-ref-as-ID marshaling. (#6125)
When marshaling a resource reference as its ID (i.e. when
opts.KeepResources is false, as it will be in the case of downlevel SDKs
and resource providers), we must take care to marshal/unmarshal an empty
ID as the unknown property value.

This includes the following changes to the resource ref APIs:

- Bifurcate resource reference creation into two methods: one for
  creating references to custom resources and one for creating
  references to component resources.
- Store the ID in a resource reference as a PropertyValue s.t. it can be
  computed.
- Add a helper method for retrieving the ID as a string + an indicator of
  whether or not the reference has an ID.

Fixes #5939.
2021-01-15 16:06:57 -08:00
..
apitype Remove UpdateVersion from UpdateInfo struct as it's already covered by Version 2021-01-04 22:39:10 +00:00
constant expose execution kind via update metadata (#5258) 2020-08-31 09:07:59 -07:00
diag Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
encoding Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
resource Fix resource-ref-as-ID marshaling. (#6125) 2021-01-15 16:06:57 -08:00
testing Add PULUMI_BACKEND_URL env var (#5789) 2020-11-22 15:27:59 -08:00
tokens Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
tools switch os/user with luser 2020-07-27 14:44:08 -07:00
util Do not read TGZs into memory. (#5983) 2020-12-20 12:54:11 -08:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace Add support for pulumi logout --all (#6101) 2021-01-15 13:38:58 +00:00