Skip to content

Commit a2955fe

Browse files
author
aq17
committed
make build_sdks
1 parent a7c0019 commit a2955fe

34 files changed

+193
-84
lines changed

sdk/dotnet/Config/Config.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void Set(T value)
3030
}
3131
}
3232

33-
private static readonly Pulumi.Config __config = new Pulumi.Config("postgresql");
33+
private static readonly global::Pulumi.Config __config = new global::Pulumi.Config("postgresql");
3434

3535
private static readonly __Value<bool?> _awsRdsIamAuth = new __Value<bool?>(() => __config.GetBoolean("awsRdsIamAuth"));
3636
/// <summary>

sdk/dotnet/Provider.cs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
9797
var defaultOptions = new CustomResourceOptions
9898
{
9999
Version = Utilities.Version,
100+
AdditionalSecretOutputs =
101+
{
102+
"password",
103+
},
100104
};
101105
var merged = CustomResourceOptions.Merge(defaultOptions, options);
102106
// Override the ID if one was specified for consistency with other language SDKs.
@@ -162,11 +166,21 @@ public sealed class ProviderArgs : global::Pulumi.ResourceArgs
162166
[Input("maxConnections", json: true)]
163167
public Input<int>? MaxConnections { get; set; }
164168

169+
[Input("password")]
170+
private Input<string>? _password;
171+
165172
/// <summary>
166173
/// Password to be used if the PostgreSQL server demands password authentication
167174
/// </summary>
168-
[Input("password")]
169-
public Input<string>? Password { get; set; }
175+
public Input<string>? Password
176+
{
177+
get => _password;
178+
set
179+
{
180+
var emptySecret = Output.CreateSecret(0);
181+
_password = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
182+
}
183+
}
170184

171185
/// <summary>
172186
/// The PostgreSQL port number to connect to at the server host, or socket file name extension for Unix-domain connections

sdk/dotnet/Pulumi.PostgreSql.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<RepositoryUrl>https://github.com/pulumi/pulumi-postgresql</RepositoryUrl>
1111
<PackageIcon>logo.png</PackageIcon>
1212

13-
<TargetFramework>netcoreapp3.1</TargetFramework>
13+
<TargetFramework>net6.0</TargetFramework>
1414
<Nullable>enable</Nullable>
1515
<UseSharedCompilation>false</UseSharedCompilation>
1616
</PropertyGroup>

sdk/dotnet/Role.cs

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
190190
var defaultOptions = new CustomResourceOptions
191191
{
192192
Version = Utilities.Version,
193+
AdditionalSecretOutputs =
194+
{
195+
"password",
196+
},
193197
};
194198
var merged = CustomResourceOptions.Merge(defaultOptions, options);
195199
// Override the ID if one was specified for consistency with other language SDKs.
@@ -290,12 +294,22 @@ public sealed class RoleArgs : global::Pulumi.ResourceArgs
290294
[Input("name")]
291295
public Input<string>? Name { get; set; }
292296

297+
[Input("password")]
298+
private Input<string>? _password;
299+
293300
/// <summary>
294301
/// Sets the role's password. A password is only of use
295302
/// for roles having the `login` attribute set to true.
296303
/// </summary>
297-
[Input("password")]
298-
public Input<string>? Password { get; set; }
304+
public Input<string>? Password
305+
{
306+
get => _password;
307+
set
308+
{
309+
var emptySecret = Output.CreateSecret(0);
310+
_password = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
311+
}
312+
}
299313

300314
/// <summary>
301315
/// Defines whether a role is allowed to initiate
@@ -465,12 +479,22 @@ public sealed class RoleState : global::Pulumi.ResourceArgs
465479
[Input("name")]
466480
public Input<string>? Name { get; set; }
467481

482+
[Input("password")]
483+
private Input<string>? _password;
484+
468485
/// <summary>
469486
/// Sets the role's password. A password is only of use
470487
/// for roles having the `login` attribute set to true.
471488
/// </summary>
472-
[Input("password")]
473-
public Input<string>? Password { get; set; }
489+
public Input<string>? Password
490+
{
491+
get => _password;
492+
set
493+
{
494+
var emptySecret = Output.CreateSecret(0);
495+
_password = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
496+
}
497+
}
474498

475499
/// <summary>
476500
/// Defines whether a role is allowed to initiate

sdk/go/postgresql/defaultPrivileg.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/go/postgresql/defaultPrivileges.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/go/postgresql/doc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
// A Pulumi package for creating and managing postgresql cloud resources.
2-
32
package postgresql

sdk/go/postgresql/function.go

Lines changed: 4 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/go/postgresql/grant.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/go/postgresql/grantRole.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)