PR feedback
This commit is contained in:
parent
a7e91a1eb3
commit
8422b35acb
|
@ -559,10 +559,7 @@ func (pt *plainType) genInputProperty(w io.Writer, prop *schema.Property, indent
|
|||
fmt.Fprintf(w, "%s get => %s;\n", indent, backingFieldName)
|
||||
}
|
||||
if prop.Secret {
|
||||
fmt.Fprintf(w, "%s set\n", indent)
|
||||
fmt.Fprintf(w, "%s {\n", indent)
|
||||
fmt.Fprintf(w, "%s %s = value.Apply(Output.CreateSecret);\n", indent, backingFieldName)
|
||||
fmt.Fprintf(w, "%s }\n", indent)
|
||||
fmt.Fprintf(w, "%s set => %s = value.Apply(Output.CreateSecret);\n", indent, backingFieldName)
|
||||
} else {
|
||||
fmt.Fprintf(w, "%s set => %s = value;\n", indent, backingFieldName)
|
||||
}
|
||||
|
|
|
@ -69,10 +69,7 @@ namespace Pulumi.Foo-bar.Deeply/nested/module
|
|||
public Input<string>? Baz
|
||||
{
|
||||
get => _baz;
|
||||
set
|
||||
{
|
||||
_baz = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
set => _baz = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
|
||||
public ResourceArgs()
|
||||
|
|
|
@ -69,10 +69,7 @@ namespace Pulumi.Foo.Nested/module
|
|||
public Input<string>? Bar
|
||||
{
|
||||
get => _bar;
|
||||
set
|
||||
{
|
||||
_bar = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
set => _bar = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
|
||||
public ResourceArgs()
|
||||
|
|
|
@ -77,10 +77,7 @@ namespace Pulumi.Example
|
|||
public Input<string>? Bar
|
||||
{
|
||||
get => _bar;
|
||||
set
|
||||
{
|
||||
_bar = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
set => _bar = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
|
||||
[Input("secretStringArray")]
|
||||
|
@ -88,10 +85,7 @@ namespace Pulumi.Example
|
|||
public InputList<string> SecretStringArray
|
||||
{
|
||||
get => _secretStringArray ?? (_secretStringArray = new InputList<string>());
|
||||
set
|
||||
{
|
||||
_secretStringArray = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
set => _secretStringArray = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
|
||||
[Input("secretStringMap")]
|
||||
|
@ -99,10 +93,7 @@ namespace Pulumi.Example
|
|||
public InputMap<string> SecretStringMap
|
||||
{
|
||||
get => _secretStringMap ?? (_secretStringMap = new InputMap<string>());
|
||||
set
|
||||
{
|
||||
_secretStringMap = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
set => _secretStringMap = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
|
||||
public ResourceArgs()
|
||||
|
|
|
@ -69,10 +69,7 @@ namespace Pulumi.Example
|
|||
public Input<string>? Bar
|
||||
{
|
||||
get => _bar;
|
||||
set
|
||||
{
|
||||
_bar = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
set => _bar = value.Apply(Output.CreateSecret);
|
||||
}
|
||||
|
||||
public ResourceArgs()
|
||||
|
|
Loading…
Reference in a new issue