Commit Graph

19 Commits

Author SHA1 Message Date
Simone Carletti
8ae31740e3 Upgrade DNSimple provider to API v2 (#10760)
* Replace DNSimple API client with the official Go client

* Upgrade DNSimple provider to use the new API v2

Acceptance tests pass:

```
=== RUN   TestProvider
--- PASS: TestProvider (0.00s)
=== RUN   TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN   TestAccDNSimpleRecord_Basic
--- PASS: TestAccDNSimpleRecord_Basic (2.67s)
=== RUN   TestAccDNSimpleRecord_Updated
--- PASS: TestAccDNSimpleRecord_Updated (1.88s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/dnsimple
```

Note that the code still has to be updated to pass the account ID
dynamically in place of "TODO-ACCOUNT".

* Refactor DNSimple provider to expose both client and config

The config is required as the new API wants to know the identifier of
the account you are operating to. The account is not stored in the
client (as the client can talk with different accounts), hence I need
to pass it as part of the config.

* Identify Terraform requests to DNSimple via UserAgent

* Upgrade to the latest dnsimple-go version

* Update docs

Provide upgrade instructions and update the docs for API v2.

* Remove rendundant type declaration
2017-03-02 05:12:34 +00:00
David Radcliffe
f1cc9fafb3 “DNS Simple” should be “DNSimple” 2015-07-17 23:18:28 -04:00
David Radcliffe
94ef573b66 DNSimple does not support changing a record domain or type 2015-07-17 17:06:01 -04:00
Clint Shryock
f6bcc302d3 providers/aws+cloudflare+dnsimple: Increase some verbosity 2015-05-18 15:25:03 -05:00
Justin Campbell
6f4b7b25c6 providers/dnsimple: default ttl to 3600
Since the field is optional and DNSimple defaults it to 3600 on their end, `terraform plan` currently will report `ttl: "3600" => ""`.
2015-04-28 09:20:23 -04:00
Jeff Mitchell
f2bd1f45ab Move duplicated envDefaultFunc out of each provider and into Schema. 2015-01-16 17:25:39 +00:00
Sander van Harmelen
4e94af3644 Removing obsolete struct tags 2014-11-17 18:58:41 +01:00
Sander van Harmelen
cdee8c70ec Refactoring the DNSimple provider
With this refactor the DNSimple provider is updated to use the
schema.Provider approach released with TF 0.2.
2014-11-17 14:01:00 +01:00
Mitchell Hashimoto
459ffe9d2a providers/*: fix compilation for input 2014-09-29 10:28:08 -07:00
Mitchell Hashimoto
9b2b3a963f ResourceDiff => InstanceDiff 2014-09-17 16:33:24 -07:00
Mitchell Hashimoto
c2a2aca999 providers/dnsimple: tests passing, compiling 2014-09-16 17:24:05 -07:00
Jack Pearkes
307f7e4e5b providers/dnsimple: fix comment 2014-07-25 12:05:51 -04:00
Jack Pearkes
454db657be providers/dnsimple|heroku: handle ComputedAttrsUpdate 2014-07-24 23:29:58 -04:00
Jack Pearkes
228c8db134 providers/dnsimple: add hostname as computed resource 2014-07-24 19:32:59 -04:00
Jack Pearkes
298483131b providers/aws: fixed tons of aws stuff 2014-07-24 18:50:33 -04:00
Jack Pearkes
ae7db9359e providers/dnsimple: finish update func, new lib 2014-07-24 11:23:10 -04:00
Jack Pearkes
2f4ea10349 dnsimple: fix for new library 2014-07-24 10:21:50 -04:00
Jack Pearkes
07d9bb03ec providers/dnsimple: handle custom domains 2014-07-23 20:53:28 -04:00
Jack Pearkes
d8c83a1a95 providers/dnsimple: init commit 2014-07-23 17:43:49 -04:00