Skip to content

Commit

Permalink
Merge pull request #4 from komminarlabs/tk/namespace
Browse files Browse the repository at this point in the history
fix: modified namespace and updated docs
  • Loading branch information
thulasirajkomminar authored Oct 14, 2024
2 parents a315b74 + 176f743 commit 71bf452
Show file tree
Hide file tree
Showing 45 changed files with 83 additions and 57 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGELOG
=========

## [0.2.0] - 2024-10-14

### Fixed:

- Fixed docs
- Fixed `CSharp` namespaces

## [0.1.0] - 2024-10-08

### Added:
Expand Down
19 changes: 19 additions & 0 deletions docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,23 @@ func main() {

{{% /choosable %}}

{{% choosable language csharp %}}

```csharp
using Pulumi;
using KomminarLabs.CrateDB;

class CrateDB : Stack
{
public CrateDB()
{
var db = new Organization("default", new OrganizationArgs{
Name: "default"
});
}
}
```

{{% /choosable %}}

{{< /chooser >}}
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-resource-cratedb/schema-embed.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions provider/cmd/pulumi-resource-cratedb/schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cratedb",
"displayName": "cratedb",
"displayName": "CrateDB",
"description": "A Pulumi package for creating and managing CrateDB resources.",
"keywords": [
"pulumi",
Expand All @@ -23,7 +23,7 @@
"Pulumi": "3.*"
},
"namespaces": {
"cratedb": "cratedb"
"cratedb": "CrateDB"
},
"compatibility": "tfbridge20",
"rootNamespace": "KomminarLabs"
Expand Down
4 changes: 2 additions & 2 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func Provider() tfbridge.ProviderInfo {
// Instantiate the Terraform provider
P: pf.ShimProvider(cratedbshim.NewProvider()),
Name: "cratedb",
DisplayName: "cratedb",
DisplayName: "CrateDB",
Publisher: "komminarlabs",
Version: version.Version,
LogoURL: "https://avatars.githubusercontent.com/u/5713248?s=200&v=4",
Expand Down Expand Up @@ -100,7 +100,7 @@ func Provider() tfbridge.ProviderInfo {
"Pulumi": "3.*",
},
Namespaces: map[string]string{
"cratedb": "cratedb",
"cratedb": "CrateDB",
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb
namespace KomminarLabs.CrateDB
{
/// <summary>
/// Creates and manages a cluster.
/// </summary>
[cratedbResourceType("cratedb:index/cluster:Cluster")]
[CrateDBResourceType("cratedb:index/cluster:Cluster")]
public partial class Cluster : global::Pulumi.CustomResource
{
/// <summary>
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 @@ -4,7 +4,7 @@
using System;
using System.Collections.Immutable;

namespace KomminarLabs.cratedb
namespace KomminarLabs.CrateDB
{
public static class Config
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GetCluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb
namespace KomminarLabs.CrateDB
{
public static class GetCluster
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GetOrganization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb
namespace KomminarLabs.CrateDB
{
public static class GetOrganization
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GetOrganizations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb
namespace KomminarLabs.CrateDB
{
public static class GetOrganizations
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/GetProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb
namespace KomminarLabs.CrateDB
{
public static class GetProject
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/ClusterDcArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class ClusterDcArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/ClusterDcGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class ClusterDcGetArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/ClusterHardwareSpecsArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class ClusterHardwareSpecsArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/ClusterHardwareSpecsGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class ClusterHardwareSpecsGetArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/ClusterHealthArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class ClusterHealthArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/ClusterHealthGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class ClusterHealthGetArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/ClusterIpWhitelistArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class ClusterIpWhitelistArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/ClusterIpWhitelistGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class ClusterIpWhitelistGetArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/OrganizationDcArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class OrganizationDcArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/OrganizationDcGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class OrganizationDcGetArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/ProjectDcArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class ProjectDcArgs : global::Pulumi.ResourceArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/ProjectDcGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Inputs
namespace KomminarLabs.CrateDB.Inputs
{

public sealed class ProjectDcGetArgs : global::Pulumi.ResourceArgs
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Organization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb
namespace KomminarLabs.CrateDB
{
/// <summary>
/// Creates and manages an organization.
/// </summary>
[cratedbResourceType("cratedb:index/organization:Organization")]
[CrateDBResourceType("cratedb:index/organization:Organization")]
public partial class Organization : global::Pulumi.CustomResource
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/ClusterDc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/ClusterHardwareSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/ClusterHealth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/ClusterIpWhitelist.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/GetClusterDcResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/GetClusterHardwareSpecsResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/GetClusterHealthResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/GetClusterIpWhitelistResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/GetClusterLastAsyncOperationDcResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/GetClusterLastAsyncOperationResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/GetOrganizationDcResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/GetOrganizationsOrganizationDcResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/GetOrganizationsOrganizationResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/GetProjectDcResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/OrganizationDc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/ProjectDc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace KomminarLabs.cratedb.Outputs
namespace KomminarLabs.CrateDB.Outputs
{

[OutputType]
Expand Down
Loading

0 comments on commit 71bf452

Please sign in to comment.