Skip to content

Commit

Permalink
Merge pull request #96 from go-gandi/release-v2.0.0
Browse files Browse the repository at this point in the history
Release v2.0.0
  • Loading branch information
nlewo authored Jan 19, 2022
2 parents ed9b59b + 284be6e commit c63939c
Show file tree
Hide file tree
Showing 13 changed files with 132 additions and 93 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Note: sharing_id is optional. It is used e.g. when the API key is registered to
terraform {
required_providers {
gandi = {
version = "2.0.0-rc3"
version = "~> 2.0.0"
source = "github/go-gandi/gandi"
}
}
Expand Down
31 changes: 31 additions & 0 deletions docs/data-sources/glue_record.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "gandi_glue_record Data Source - terraform-provider-gandi"
subcategory: ""
description: |-
---

# gandi_glue_record (Data Source)





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

### Required

- **name** (String) Host name of the glue record
- **zone** (String) Domain name

### Optional

- **id** (String) The ID of this resource.

### Read-Only

- **ips** (List of String) A list of the ip addresses provided for the glue record


21 changes: 0 additions & 21 deletions docs/data-sources/gluerecord.md

This file was deleted.

19 changes: 2 additions & 17 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

The Gandi provider enables the purchasing and management of the
following Gandi resources:

- [DNS zones](https://api.gandi.net/docs/domains/)
- [LiveDNS service](https://api.gandi.net/docs/livedns/)
- [Email](https://api.gandi.net/docs/email/)
Expand All @@ -13,13 +14,11 @@ Use the navigation to the left to read about the available resources.

## Example Usage

Terraform 0.13 and later:

```terraform
terraform {
required_providers {
gandi = {
version = "~> 2.0"
version = "~> 2.0.0"
source = "go-gandi/gandi"
}
}
Expand All @@ -31,20 +30,6 @@ provider "gandi" {
resource "gandi_domain" "example_com" {
name = "example.com"
nameservers = ["a.dns.server"]
}
```

Terraform 0.12:

```terraform
provider "gandi" {
key = "MY_API_KEY"
}
resource "gandi_domain" "example_com" {
name = "example.com"
nameservers = ["a.dns.server"]
}
```

Expand Down
20 changes: 10 additions & 10 deletions docs/resources/domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ description: |-

### Required

- **admin** (Block Set, Min: 1) (see [below for nested schema](#nestedblock--admin))
- **billing** (Block Set, Min: 1) (see [below for nested schema](#nestedblock--billing))
- **name** (String) The FQDN of the domain
- **owner** (Block Set, Min: 1) (see [below for nested schema](#nestedblock--owner))
- **tech** (Block Set, Min: 1) (see [below for nested schema](#nestedblock--tech))

### Optional

- **admin** (Block Set) (see [below for nested schema](#nestedblock--admin))
- **autorenew** (Boolean) Should the domain autorenew
- **billing** (Block Set) (see [below for nested schema](#nestedblock--billing))
- **id** (String) The ID of this resource.
- **nameservers** (List of String) A list of nameservers for the domain
- **nameservers** (List of String, Deprecated) A list of nameservers for the domain
- **tech** (Block Set) (see [below for nested schema](#nestedblock--tech))
- **timeouts** (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))

<a id="nestedblock--admin"></a>
### Nested Schema for `admin`
<a id="nestedblock--owner"></a>
### Nested Schema for `owner`

Required:

Expand All @@ -54,8 +54,8 @@ Optional:
- **state** (String) The state code for the contact


<a id="nestedblock--billing"></a>
### Nested Schema for `billing`
<a id="nestedblock--admin"></a>
### Nested Schema for `admin`

Required:

Expand All @@ -78,8 +78,8 @@ Optional:
- **state** (String) The state code for the contact


<a id="nestedblock--owner"></a>
### Nested Schema for `owner`
<a id="nestedblock--billing"></a>
### Nested Schema for `billing`

Required:

Expand Down
42 changes: 42 additions & 0 deletions docs/resources/glue_record.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "gandi_glue_record Resource - terraform-provider-gandi"
subcategory: ""
description: |-
---

# gandi_glue_record (Resource)





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

### Required

- **ips** (List of String) List of IP addresses
- **name** (String) Host name of the glue record
- **zone** (String) Domain name

### Optional

- **id** (String) The ID of this resource.
- **timeouts** (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))

### Read-Only

- **fqdn** (String) The fqdn of the record
- **fqdn_unicode** (String) The fqdn unicode of the record
- **href** (String) The href of the record

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Optional:

- **default** (String)


23 changes: 0 additions & 23 deletions docs/resources/gluerecord.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/resources/livedns_domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description: |-
- **automatic_snapshots** (Boolean) Enable or disable the automatic creation of snapshots when records are changed
- **id** (String) The ID of this resource.
- **timeouts** (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- **ttl** (Number) The SOA TTL for the domain
- **ttl** (Number, Deprecated) The SOA TTL for the domain

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`
Expand Down
35 changes: 35 additions & 0 deletions docs/resources/nameservers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "gandi_nameservers Resource - terraform-provider-gandi"
subcategory: ""
description: |-
---

# gandi_nameservers (Resource)





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

### Required

- **domain** (String) The FQDN of the domain

### Optional

- **id** (String) The ID of this resource.
- **nameservers** (List of String) A list of nameservers for the domain
- **timeouts** (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Optional:

- **default** (String)


2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.16

require (
github.com/fatih/color v1.9.0 // indirect
github.com/go-gandi/go-gandi v0.0.0-20211230165416-1a297fd86f69
github.com/go-gandi/go-gandi v0.1.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.10.1
github.com/hashicorp/yamux v0.0.0-20190923154419-df201c70410d // indirect
github.com/oklog/run v1.1.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s=
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
github.com/go-gandi/go-gandi v0.0.0-20211230165416-1a297fd86f69 h1:sqOkTdRufgQYRM43qurk5zSrOBO1oZmcZ8g7jb+bGLY=
github.com/go-gandi/go-gandi v0.0.0-20211230165416-1a297fd86f69/go.mod h1:9NoYyfWCjFosClPiWjkbbRK5UViaZ4ctpT8/pKSSFlw=
github.com/go-gandi/go-gandi v0.1.0 h1:lYPNy6LUJtR76C25pAcwXuos8WbPg+hX6R2ZPm/jf+8=
github.com/go-gandi/go-gandi v0.1.0/go.mod h1:9NoYyfWCjFosClPiWjkbbRK5UViaZ4ctpT8/pKSSFlw=
github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4=
github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E=
github.com/go-git/go-billy/v5 v5.2.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0=
Expand Down
18 changes: 1 addition & 17 deletions templates/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ Use the navigation to the left to read about the available resources.

## Example Usage

Terraform 0.13 and later:

```terraform
terraform {
required_providers {
gandi = {
version = "~> 2.0"
version = "~> 2.0.0"
source = "go-gandi/gandi"
}
}
Expand All @@ -32,20 +30,6 @@ provider "gandi" {
resource "gandi_domain" "example_com" {
name = "example.com"
nameservers = ["a.dns.server"]
}
```

Terraform 0.12:

```terraform
provider "gandi" {
key = "MY_API_KEY"
}
resource "gandi_domain" "example_com" {
name = "example.com"
nameservers = ["a.dns.server"]
}
```

Expand Down
6 changes: 6 additions & 0 deletions terraform-registry-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": 1,
"metadata": {
"protocol_versions": ["5.0"],
},
}

0 comments on commit c63939c

Please sign in to comment.