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 #25

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
([#25](https://github.com/pulumi/pulumi-gitlab/pull/25)).

---

Expand Down
7 changes: 5 additions & 2 deletions resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ const (
gitLabMod = "index" // the root index.
)

// gitLabMember manufactures a type token for the Digital Ocean package and the given module and type.
// gitLabMember manufactures a type token for the GitLab package and the given module and type.
func gitLabMember(mod string, mem string) tokens.ModuleMember {
return tokens.ModuleMember(gitLabPkg + ":" + mod + ":" + mem)
}

// gitLabType manufactures a type token for the Digital Ocean package and the given module and type.
// gitLabType manufactures a type token for the GitLab package and the given module and type.
func gitLabType(mod string, typ string) tokens.Type {
return tokens.Type(gitLabMember(mod, typ))
}
Expand Down Expand Up @@ -138,6 +138,9 @@ func Provider() tfbridge.ProviderInfo {
"Pulumi": "1.5.0-*",
"System.Collections.Immutable": "1.6.0",
},
Namespaces: map[string]string{
gitLabPkg: "GitLab",
},
},
}

Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/BranchProtection.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to protect a specific branch by an access level so that the user with less access level cannot Merge/Push to the branch. GitLab EE features to protect by group or user are not supported.
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.Gitlab
namespace Pulumi.GitLab
{
public static class Config
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/DeployKey.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage deploy keys for your GitLab projects.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/DeployKeyEnable.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to enable pre-existing deploy keys for your GitLab projects.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GetGroup.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.Gitlab
namespace Pulumi.GitLab
{
public static partial class Invokes
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GetProject.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.Gitlab
namespace Pulumi.GitLab
{
public static partial class Invokes
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GetUser.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.Gitlab
namespace Pulumi.GitLab
{
public static partial class Invokes
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GetUsers.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.Gitlab
namespace Pulumi.GitLab
{
public static partial class Invokes
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Group.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// &gt; This content is derived from https://github.com/terraform-providers/terraform-provider-gitlab/blob/master/website/docs/r/group.html.markdown.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GroupCluster.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage group clusters for your GitLab groups.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GroupLabel.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage labels for your GitLab groups.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GroupMembership.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to add a user to an existing group.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GroupVariable.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage CI/CD variables for your GitLab groups.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Label.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage labels for your GitLab projects.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/PipelineSchedule.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage pipeline schedules.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/PipelineScheduleVariable.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage variables for pipeline schedules.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/PipelineTrigger.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage pipeline triggers
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Project.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// &gt; This content is derived from https://github.com/terraform-providers/terraform-provider-gitlab/blob/master/website/docs/r/project.html.markdown.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/ProjectCluster.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage project clusters for your GitLab projects.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/ProjectHook.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage hooks for your GitLab projects.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/ProjectMembership.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to add a current user to an existing project with a set access level.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/ProjectPushRules.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage push rules for your GitLab projects.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/ProjectShareGroup.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to share a project with a group
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/ProjectVariable.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to create and manage CI/CD variables for your GitLab projects.
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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// The provider type for the gitlab package. By default, resources use package-wide configuration
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion sdk/dotnet/ServiceJira.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to manage Jira integration.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/ServiceSlack.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to manage Slack notifications integration.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/TagProtection.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// This resource allows you to protect a specific tag or wildcard by an access level so that the user with less access level cannot Create the tags.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/User.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.Gitlab
namespace Pulumi.GitLab
{
/// <summary>
/// &gt; This content is derived from https://github.com/terraform-providers/terraform-provider-gitlab/blob/master/website/docs/r/user.html.markdown.
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.Gitlab
namespace Pulumi.GitLab
{
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.Gitlab.version.txt");
using var stream = assembly.GetManifestResourceStream("Pulumi.GitLab.version.txt");
using var reader = new StreamReader(stream ?? throw new NotSupportedException("Missing embedded version.txt file"));
version = reader.ReadToEnd().Trim();
}
Expand Down