Skip to content

Commit

Permalink
Fixes after testing real examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vavsab committed Mar 20, 2024
1 parent 7132eaf commit a0a7299
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 162 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: build

on:
push:
branches-ignore:
# release workflow will build main anyway. No need to do it twice.
- 'main'
workflow_dispatch:

jobs:
prerequisites:
permissions:
pull-requests: write
uses: pulumiverse/infra/.github/workflows/[email protected]
with:
provider: cpln
goversion: 1.21.x
build:
needs: prerequisites
uses: pulumiverse/infra/.github/workflows/[email protected]
with:
provider: cpln
goversion: 1.21.x
dotnetversion: 6.0.300
nodeversion: 20.x
pythonversion: 3.9
name: build

on:
push:
branches-ignore:
# release workflow will build main anyway. No need to do it twice.
- 'main'
workflow_dispatch:

jobs:
prerequisites:
permissions:
pull-requests: write
uses: pulumiverse/infra/.github/workflows/[email protected]
with:
provider: cpln
goversion: 1.21.x
build:
needs: prerequisites
uses: pulumiverse/infra/.github/workflows/[email protected]
with:
provider: cpln
goversion: 1.21.x
dotnetversion: 6.0.300
nodeversion: 20.x
pythonversion: 3.9
118 changes: 59 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
# Control Plane (cpln) Resource Provider

The Control Plane Resource Provider lets you manage [Control Plane](https://controlplane.com/) resources.

## Installing

This package is available for several languages/platforms:

### Node.js (JavaScript/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either `npm`:

```bash
npm install @pulumiverse/cpln
```

or `yarn`:

```bash
yarn add @pulumiverse/cpln
```

### Python

To use from Python, install using `pip`:

```bash
pip install pulumi_cpln
```

### Go

To use from Go, use `go get` to grab the latest version of the library:

```bash
go get github.com/pulumiverse/pulumi-cpln/sdk/go/...
```

### .NET

To use from .NET, install using `dotnet add package`:

```bash
dotnet add package Pulumiverse.cpln
```

## Configuration

The following configuration points are available for the `cpln` provider:

- `cpln:org` - The Control Plane org that this provider will perform actions against
- `cpln:endpoint` - The Control Plane Data Service API endpoint
- `cpln:profile` - The user/service account profile that this provider will use to authenticate to the data service
- `cpln:token` - A generated token that can be used to authenticate to the data service API
- `cpln:refreshToken` - A generated token that can be used to authenticate to the data service API

## Reference

For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/cpln/api-docs/).
# Control Plane (cpln) Resource Provider

The Control Plane Resource Provider lets you manage [Control Plane](https://controlplane.com/) resources.

## Installing

This package is available for several languages/platforms:

### Node.js (JavaScript/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either `npm`:

```bash
npm install @pulumiverse/cpln
```

or `yarn`:

```bash
yarn add @pulumiverse/cpln
```

### Python

To use from Python, install using `pip`:

```bash
pip install pulumiverse-cpln
```

### Go

To use from Go, use `go get` to grab the latest version of the library:

```bash
go get github.com/pulumiverse/pulumi-cpln/sdk/go/...
```

### .NET

To use from .NET, install using `dotnet add package`:

```bash
dotnet add package Pulumiverse.cpln
```

## Configuration

The following configuration points are available for the `cpln` provider:

- `cpln:org` - The Control Plane org that this provider will perform actions against
- `cpln:endpoint` - The Control Plane Data Service API endpoint
- `cpln:profile` - The user/service account profile that this provider will use to authenticate to the data service
- `cpln:token` - A generated token that can be used to authenticate to the data service API
- `cpln:refreshToken` - A generated token that can be used to authenticate to the data service API

## Reference

For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/cpln/api-docs/).
45 changes: 28 additions & 17 deletions docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,51 @@ The Control Plane (cpln) Pulumi provider enables the scaffolding of any Control
```typescript
import * as cpln from "@pulumiverse/cpln";

const location = new cpln.Location("example", {
name: "aws-us-west-2"
const group = new cpln.Group("example", {
description: "example"
});

export const groupId = group.id;
```

{{% /choosable %}}
{{% choosable language python %}}

```python
import pulumi
import pulumiverse_cpln as cpln

db = cpln.Location("example",
name="aws-us-west-2"
group = cpln.Group("example",
description="example"
)

pulumi.export("group.id", group.id)
```

{{% /choosable %}}
{{% choosable language go %}}

```go
package main

import (
"fmt"
cpln "github.com/pulumiverse/pulumi-cpln/sdk/go/cpln"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
cpln "github.com/pulumiverse/pulumi-cpln/sdk/go/cpln"
)

func main() {
pulumi.Run(func(ctx *pulumi.Context) error {

location, err := cpln.NewLocation(ctx, "example", &cpln.LocationArgs{
Name: pulumi.String("aws-us-west-2"),
group, err := cpln.NewGroup(ctx, "example", &cpln.GroupArgs{
Description: pulumi.String("example"),
})
if err != nil {
return fmt.Errorf("error creating location: %v", err)
return fmt.Errorf("error creating a group: %v", err)
}

ctx.Export("location.enabled", location.enabled)
ctx.Export("group.id", group.ID())

return nil
})
Expand All @@ -61,18 +69,21 @@ func main() {
{{% choosable language csharp %}}

```csharp
using System.Collections.Generic;
using Pulumi;
using Pulumiverse.cpln;
using Pulumiverse.Cpln;

class cpln : Stack
return await Deployment.RunAsync(() =>
{
public cpln()
var group = new Group("example", new GroupArgs{
Description = "example"
});

return new Dictionary<string, object?>
{
var location = new Location("example", new LocationArgs{
Name: "example"
});
}
}
["group.id"] = group.Id
};
});
```

{{% /choosable %}}
Expand Down
2 changes: 1 addition & 1 deletion docs/installation-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ layout: package
The Pulumi Control Plane (cpln) provider is available as a package in all Pulumi languages:

* JavaScript/TypeScript: [`@pulumiserve/cpln`](https://www.npmjs.com/package/@pulumiverse/cpln)
* Python: [`pulumiverse_cpln`](https://pypi.org/project/pulumiverse-cpln/)
* Python: [`pulumiverse-cpln`](https://pypi.org/project/pulumiverse-cpln/)
* Go: [`github.com/pulumiverse/pulumi-cpln/sdk/go/cpln`](https://pkg.go.dev/github.com/pulumiverse/pulumi-cpln/sdk)
* .NET: [`Pulumiverse.cpln`](https://www.nuget.org/packages/Pulumiverse.cpln)

Expand Down
118 changes: 59 additions & 59 deletions sdk/python/README.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
# cpln Resource Provider

The cpln Resource Provider lets you manage [Control Plane](https://controlplane.com/) resources.

## Installing

This package is available for several languages/platforms:

### Node.js (JavaScript/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either `npm`:

```bash
npm install @pulumiverse/cpln
```

or `yarn`:

```bash
yarn add @pulumiverse/cpln
```

### Python

To use from Python, install using `pip`:

```bash
pip install pulumi_cpln
```

### Go

To use from Go, use `go get` to grab the latest version of the library:

```bash
go get github.com/pulumiverse/pulumi-cpln/sdk/go/...
```

### .NET

To use from .NET, install using `dotnet add package`:

```bash
dotnet add package Pulumiverse.cpln
```

## Configuration

The following configuration points are available for the `cpln` provider:

- `cpln:org` - The Control Plane org that this provider will perform actions against
- `cpln:endpoint` - The Control Plane Data Service API endpoint
- `cpln:profile` - The user/service account profile that this provider will use to authenticate to the data service
- `cpln:token` - A generated token that can be used to authenticate to the data service API
- `cpln:refreshToken` - A generated token that can be used to authenticate to the data service API

## Reference

For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/cpln/api-docs/).
# Control Plane (cpln) Resource Provider

The Control Plane Resource Provider lets you manage [Control Plane](https://controlplane.com/) resources.

## Installing

This package is available for several languages/platforms:

### Node.js (JavaScript/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either `npm`:

```bash
npm install @pulumiverse/cpln
```

or `yarn`:

```bash
yarn add @pulumiverse/cpln
```

### Python

To use from Python, install using `pip`:

```bash
pip install pulumiverse-cpln
```

### Go

To use from Go, use `go get` to grab the latest version of the library:

```bash
go get github.com/pulumiverse/pulumi-cpln/sdk/go/...
```

### .NET

To use from .NET, install using `dotnet add package`:

```bash
dotnet add package Pulumiverse.cpln
```

## Configuration

The following configuration points are available for the `cpln` provider:

- `cpln:org` - The Control Plane org that this provider will perform actions against
- `cpln:endpoint` - The Control Plane Data Service API endpoint
- `cpln:profile` - The user/service account profile that this provider will use to authenticate to the data service
- `cpln:token` - A generated token that can be used to authenticate to the data service API
- `cpln:refreshToken` - A generated token that can be used to authenticate to the data service API

## Reference

For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/cpln/api-docs/).

0 comments on commit a0a7299

Please sign in to comment.