Andrew Starr-Bochicchio
491ebce9c6
Allow creating domain records with a priority of 0.
2018-04-26 17:17:24 -04:00
Maurício Linhares
7a32b5ce17
Wrapping up v1.1.3
2018-03-07 18:06:05 -05:00
Maurício Linhares
54622b1d85
Merge pull request #156 from aknuds1/handle-non-json-errors
...
Handle non-json errors from the API
2018-03-06 11:16:06 -05:00
Maurício Linhares
270ee7db93
Merge pull request #158 from dan-v/master
...
Update create droplet example to use latest instance type
2018-03-06 11:14:34 -05:00
Maurício Linhares
3df1c7a8af
Wrapping up 1.1.2
2018-03-06 11:13:17 -05:00
Dan Vittegleo
e397cefc79
Update create droplet example to use latest instance type
2018-01-19 11:42:11 -08:00
Andrew Sy Kim
7249498ac0
Merge pull request #157 from andrewsykim/storage/list-volumes-param-bug
...
storage: list volumes should also handle only name or only region params
2017-11-27 11:47:15 -05:00
andrewsykim
2594011128
storage: list volumes should handle only name or only region params
2017-11-26 18:50:57 -05:00
Arve Knudsen
ed58d2b381
Handle non-json errors from the API
2017-11-21 11:33:58 +01:00
Maurício Linhares
573489fbea
Merge pull request #154 from xmudrii/improve-readme
...
docs: replace first example with fully-runnable example
2017-10-30 16:57:56 -04:00
Marko Mudrinić
46fafcf9d2
docs: replace first example with fully-runnable example
2017-10-30 20:42:11 +01:00
Maurício Linhares
801cee9569
Merge pull request #152 from jaymecd/domains_caa
...
Handle flags & tag properties for CAA domain record
2017-10-04 15:28:12 -04:00
Nikolai Zujev
6d1b7bd535
Handle flags & tag properties of domain record
...
CAA domain record requires both there properties to be passed.
Validation in delegated to the API itself.
2017-10-04 20:19:35 +02:00
Maurício Linhares
77ea48de76
Tagging v1.1.1
2017-09-29 10:45:41 -04:00
Joonas Bergius
6590ae2b11
Merge pull request #151 from joonas/user-agent-format
...
Follow User-Agent header field recommendations
2017-09-23 09:50:20 -06:00
Joonas Bergius
ac5e3a015f
Follow User-Agent header field recommendations
2017-09-22 17:30:06 -06:00
Maurício Linhares
b55291bf0c
Merge pull request #148 from lukegb/feature/loadbalancer-to-request
...
Add AsRequest method on LoadBalancer
2017-09-19 08:03:23 -07:00
Luke Granger-Brown
6dfa314396
Add AsRequest method on LoadBalancer
...
Updating a LoadBalancer requires a LoadBalancerRequest, which is not
easily creatable from a LoadBalancer.
Serializing the LoadBalancer to JSON and then deserializing it to a
LoadBalancerRequest mostly works, except that Region is a string on
the Request but not on the LB (since the LB returns the entire
Region object), so json.Unmarshal returns an error.
An explicit AsRequest method makes it easier for consumers of the API
to modify existing LoadBalancer objects, and is designed to avoid
modifying attributes on the original LoadBalancer when the
LoadBalancerRequest is modified.
2017-07-22 15:36:38 +01:00
Maurício Linhares
3484038586
Merge pull request #147 from guusvw/feature/use_http_consts
...
use http.MethodX instead of "GET"/"POST"/"DELETE"
2017-07-06 17:03:01 -03:00
Guus van Weelden
9e24e26f6b
use http.MethodX instead of "GET"/"POST"/"DELETE"
2017-07-02 13:55:56 +02:00
Wioletta Holownia
4fa9e9d999
Add support for Firewalls. ( #145 )
...
* Add support for Firewalls.
* Fix chagelog PR id.
* Add link to public api docs.
2017-06-06 09:50:45 -04:00
Maurício Linhares
1bbce1028c
Merge pull request #141 from xmudrii/droplet-actions-tags
...
droplet_actions: return array of actions instead of action for tagged resources
2017-05-17 11:34:49 -04:00
Maurício Linhares
ac8e270b76
Merge pull request #143 from jbowens/nocontext
...
Remove references to deprecated oauth2.NoContext
2017-05-17 11:33:03 -04:00
Jackson Owens
83030a1ac0
Use context.Background over oauth2.NoContext
...
The oauth2.NoContext variable was deprecated in
golang/oauth2@c10ba270aa .
2017-05-04 00:46:34 -04:00
Marko Mudrinić
4b0ca2dac1
droplet_actions: return array of actions instead of action tagged resources
2017-04-29 23:08:00 +02:00
Maurício Linhares
83908b1ddd
Merge pull request #139 from xmudrii/domain-ttl
...
Add TTL property to Domains
2017-04-26 18:25:10 -04:00
Marko Mudrinić
b7a390c079
Add TTL property to Domains
2017-04-25 22:28:07 +02:00
Maurício Linhares
c21ba08824
Merge pull request #137 from akutz/feature/context
...
Portable Go Context Usage
2017-04-17 14:20:47 -04:00
akutz
8ed9e9ea6c
Portable Go Context Usage
...
This patch updates the godo package to use a portable Go context -- a
Context that works with Go versions prior to Go 1.7 as well as Go 1.7
and onwards.
2017-04-07 15:32:33 -05:00
Michael Chittenden
4c04abe183
Merge pull request #138 from digitalocean/deprecate/tag-rename
...
Deprecate tag rename (PUT /v2/tags/:name)
2017-04-07 11:15:42 -04:00
Mike Chittenden
2f4c9ca7af
Deprecate tag rename (PUT /v2/tags/:name)
2017-04-07 10:53:34 -04:00
Maurício Linhares
dfa802149c
Merge pull request #136 from klausenbusk/detach
...
Remove non-working Detach function
2017-04-04 15:52:52 -04:00
Kristian Klausen
34f0bb60fa
Remove non-working Detach function
...
The function returns "422 Attachment not found" all the time (tested
with doctl), and the doc* also says that droplet id should be
specified.
* https://developers.digitalocean.com/documentation/v2/#remove-a-block-storage-volume-from-a-droplet
2017-03-30 03:09:19 +02:00
Maurício Linhares
d59ed2fe84
Merge pull request #135 from digitalocean/asb/volume-from-snapshot
...
Support creating Volumes from snapshots.
2017-03-17 16:27:44 -04:00
Andrew Starr-Bochicchio
d66c754738
Support creating Volumes from snapshots.
2017-03-17 16:10:40 -04:00
Wioletta Holownia
998925152a
Add CHANGELOG.md. ( #133 )
2017-03-14 16:35:49 -04:00
Lucas Fontes
84099941ba
Merge pull request #131 from digitalocean/bake-release
...
bumping to 1.0.0
2017-03-10 15:51:26 -05:00
lxfontes
e36b2db83c
bumping to 1.0.0
2017-03-10 15:46:07 -05:00
Maurício Linhares
5a09b87710
Merge pull request #130 from xmudrii/image-action-convert
...
Implementing Image Convert action
2017-03-06 11:10:36 -05:00
Marko Mudrinić
f8d79e767c
Implementing Image Convert action
2017-03-04 20:25:10 +01:00
Maurício Linhares
7d7ef61f56
Merge pull request #129 from digitalocean/fix-typos
...
Fix typos in PublicIPv6()
2017-02-27 23:59:46 -05:00
Viola Holownia
24ddd97cc2
Fix typos in PublicIPv6()
2017-02-27 19:06:08 -05:00
Antoine Grondin
96196cc264
Merge pull request #128 from xmudrii/fix-permissions
...
Removing executable permissions from Load Balancer files
2017-02-24 17:26:35 -05:00
Marko Mudrinić
54b246befd
Removing executable permissions from Load Balancer files
2017-02-24 23:09:29 +01:00
Andrew Starr-Bochicchio
65af7278c0
Update README with context.Context usage. ( #127 )
...
* Update README with context.Context usage.
* s/Background/TODO/
2017-02-23 20:41:35 -05:00
Antoine Grondin
342aee365e
Merge pull request #113 from digitalocean/use-context
...
add context.Context to all calls
2017-02-23 14:36:40 -05:00
Antoine Grondin
dc14e4b04d
add context.Context to all calls
2017-02-23 14:25:29 -05:00
Wioletta Holownia
19ceffc21b
Add CertificatesService for managing certificates with the DigitalOcean API. ( #126 )
...
* Add CertificatesService.
* Code review changes.
2017-02-17 13:18:41 -05:00
Dan Norris
1b60bc0c6d
Merge pull request #122 from protochron/add_volume_by_name
...
Add GetVolumeByName to Storage
2017-02-17 08:18:12 -08:00
Dan Norris
595953f5ab
Add ability to query for a storage volume by name
...
This allows you to get a volume by name and region which corresponds to
calling:
```
/v2/volumes?name=$NAME®ion=$REGION
```
2017-02-16 23:44:22 -08:00