Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Update docs and bump plugin sdk to proto v23.5.0 #26

Merged
merged 3 commits into from
May 24, 2023
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Implemented Resources:
- [x] `gpcloud_project` - The GPCloud Project resource
- [x] `gpcloud_project_image` - The GPCloud Project Image resource (Custom image)
- [x] `gpcloud_sshkey` - The GPCloud SSH-Key resource
- [x] `gpcloud_billing_profile` - The GPCloud Billing Profile resource

Implemented Data sources:
- [x] `gpcloud_project` - The GPCloud Project data source (read-only)
Expand Down Expand Up @@ -43,7 +44,7 @@ terraform {
gpcloud = {
source = "G-PORTAL/gpcloud"
# Ensure to use the latest version of the provider
version = "0.1.2"
version = "0.1.4"
}
}
}
Expand Down
56 changes: 56 additions & 0 deletions docs/resources/billing_profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "gpcloud_billing_profile Resource - terraform-provider-gpcloud"
subcategory: ""
description: |-
The datasource billing profile represents the Billing Profiles within GPCloud.
Billing Profiles are defined on user level and can be applied to different projects.
Each billing profile is receiving their own invoice at the end of the billing period.
---

# gpcloud_billing_profile (Resource)

The datasource billing profile represents the Billing Profiles within GPCloud.

Billing Profiles are defined on user level and can be applied to different projects.
Each billing profile is receiving their own invoice at the end of the billing period.

## Example Usage

```terraform
resource "gpcloud_billing_profile" "example" {
name = "John Smith"
street = "132, My Street"
city = "Kingston"
postcode = "12401"
state = "New York"
country_code = "US"
billing_email = "invoices@example.com"
company_name = "Example Inc."
company_vat_id = "US123456789"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `city` (String) City
- `country_code` (String) Country Code
- `name` (String) Full name
- `postcode` (String) Postcode
- `state` (String) State
- `street` (String) Street

### Optional

- `billing_email` (String) Email-Address to receive invoices
- `company_name` (String) Company Name
- `company_vat_id` (String) Vat ID

### Read-Only

- `id` (String) The ID of the Billing Profile


8 changes: 5 additions & 3 deletions docs/resources/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ Each project can have its own billing address, payment methods, members or envir

```terraform
resource "gpcloud_project" "example" {
name = "example-project"
description = "Example project"
environment = "PROJECT_ENVIRONMENT_DEVELOPMENT"
name = "example-project"
description = "Example project"
environment = "PROJECT_ENVIRONMENT_DEVELOPMENT"
billing_profile_id = "40c5b014-7817-4e0f-8957-ee0551b5c07f"
}
```

Expand All @@ -30,6 +31,7 @@ resource "gpcloud_project" "example" {

### Required

- `billing_profile_id` (String) Billing Profile ID
- `description` (String) Project Description
- `environment` (String) Project Environment
- `name` (String) Name of the project
Expand Down
11 changes: 11 additions & 0 deletions examples/resources/gpcloud_billing_profile/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
resource "gpcloud_billing_profile" "example" {
name = "John Smith"
street = "132, My Street"
city = "Kingston"
postcode = "12401"
state = "New York"
country_code = "US"
billing_email = "invoices@example.com"
company_name = "Example Inc."
company_vat_id = "US123456789"
}
7 changes: 4 additions & 3 deletions examples/resources/gpcloud_project/resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
resource "gpcloud_project" "example" {
name = "example-project"
description = "Example project"
environment = "PROJECT_ENVIRONMENT_DEVELOPMENT"
name = "example-project"
description = "Example project"
environment = "PROJECT_ENVIRONMENT_DEVELOPMENT"
billing_profile_id = "40c5b014-7817-4e0f-8957-ee0551b5c07f"
}
33 changes: 17 additions & 16 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,29 @@ module github.com/G-PORTAL/terraform-provider-gpcloud
go 1.18

require (
buf.build/gen/go/gportal/gportal-cloud/protocolbuffers/go v1.29.0-20230315124426-ca1321035e2e.1
github.com/G-PORTAL/gpcloud-go v0.0.0-20230315125939-7da2ab3017e6
buf.build/gen/go/gportal/gportal-cloud/protocolbuffers/go v1.30.0-20230524101208-aa1b627dd5ea.1
github.com/G-PORTAL/gpcloud-go v0.0.0-20230524110842-9591965f3c3f
github.com/google/uuid v1.3.0
github.com/hashicorp/terraform-plugin-docs v0.13.0
github.com/hashicorp/terraform-plugin-framework v1.1.1
github.com/hashicorp/terraform-plugin-docs v0.14.1
github.com/hashicorp/terraform-plugin-framework v1.2.0
github.com/hashicorp/terraform-plugin-log v0.8.0
golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb
google.golang.org/grpc v1.53.0
google.golang.org/grpc v1.55.0
)

require (
buf.build/gen/go/gportal/gportal-cloud/grpc/go v1.3.0-20230315124426-ca1321035e2e.1 // indirect
buf.build/gen/go/gportal/gportal-cloud/grpc/go v1.3.0-20230524101208-aa1b627dd5ea.1 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.1.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
github.com/Nerzal/gocloak/v13 v13.1.0 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/go-resty/resty/v2 v2.7.0 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
Expand All @@ -34,16 +35,16 @@ require (
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/hc-install v0.5.0 // indirect
github.com/hashicorp/terraform-exec v0.17.3 // indirect
github.com/hashicorp/terraform-exec v0.18.1 // indirect
github.com/hashicorp/terraform-json v0.15.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.14.3 // indirect
github.com/hashicorp/terraform-registry-address v0.1.0 // indirect
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
github.com/huandu/xstrings v1.3.2 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mitchellh/cli v1.1.5 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
Expand All @@ -58,13 +59,13 @@ require (
github.com/spf13/cast v1.5.0 // indirect
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
github.com/vmihailenco/tagparser v0.1.1 // indirect
github.com/zclconf/go-cty v1.12.1 // indirect
github.com/zclconf/go-cty v1.13.0 // indirect
golang.org/x/crypto v0.6.0 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
google.golang.org/protobuf v1.29.0 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
google.golang.org/protobuf v1.30.0 // indirect
)
Loading
Loading