Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit names for all C# namespaces #28

Merged
merged 3 commits into from
Dec 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## HEAD (Unreleased)
_(none)_
* Namespace names in .NET SDK are adjusted to PascalCase
([#28](https://github.com/pulumi/pulumi-postgresql/pull/28)).

---

Expand Down
3 changes: 3 additions & 0 deletions resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func Provider() tfbridge.ProviderInfo {
"Pulumi": "1.5.0-*",
"System.Collections.Immutable": "1.6.0",
},
Namespaces: map[string]string{
mainPkg: "PostgreSql",
},
},
}

Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Collections.Immutable;

namespace Pulumi.Postgresql
namespace Pulumi.PostgreSql
{
public static class Config
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Database.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Postgresql
namespace Pulumi.PostgreSql
{
/// <summary>
/// The ``postgresql..Database`` resource creates and manages [database
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/DefaultPrivileg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Postgresql
namespace Pulumi.PostgreSql
{
/// <summary>
/// The ``postgresql..DefaultPrivileg`` resource creates and manages default privileges given to a user for a database schema.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Extension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Postgresql
namespace Pulumi.PostgreSql
{
/// <summary>
/// The ``postgresql..Extension`` resource creates and manages an extension on a PostgreSQL
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Grant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Postgresql
namespace Pulumi.PostgreSql
{
/// <summary>
/// The ``postgresql..Grant`` resource creates and manages privileges given to a user for a database schema.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Postgresql
namespace Pulumi.PostgreSql
{
/// <summary>
/// The provider type for the postgresql package. By default, resources use package-wide configuration
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Role.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Postgresql
namespace Pulumi.PostgreSql
{
/// <summary>
/// The ``postgresql..Role`` resource creates and manages a role on a PostgreSQL
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Schema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Postgresql
namespace Pulumi.PostgreSql
{
/// <summary>
/// The ``postgresql..Schema`` resource creates and manages [schema
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Reflection;
using Pulumi;

namespace Pulumi.Postgresql
namespace Pulumi.PostgreSql
{
static class Utilities
{
Expand Down Expand Up @@ -66,7 +66,7 @@ public static InvokeOptions WithVersion(this InvokeOptions? options)
static Utilities()
{
var assembly = typeof(Utilities).GetTypeInfo().Assembly;
using var stream = assembly.GetManifestResourceStream("Pulumi.Postgresql.version.txt");
using var stream = assembly.GetManifestResourceStream("Pulumi.PostgreSql.version.txt");
using var reader = new StreamReader(stream ?? throw new NotSupportedException("Missing embedded version.txt file"));
version = reader.ReadToEnd().Trim();
}
Expand Down