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
Wioletta Holownia
767976000c
Merge pull request #125 from digitalocean/add-load-balancers
...
Add support for LoadBalancers
2017-02-14 15:43:37 -05:00
Viola Holownia
c99e714f33
Add support for LoadBalancers
2017-02-14 15:36:18 -05:00
Maurício Linhares
0d31061e91
Merge pull request #123 from xmudrii/improving-services
...
Improving Droplet services
2017-02-13 14:33:40 -05:00
Marko Mudrinic
792d5cee77
Added missing fields in Droplet struct
2017-02-13 14:04:32 +01:00
Antoine Grondin
dfde623214
Merge pull request #120 from eguevara/add-setbaseurl-tests
...
adding tests for godo.SetBaseURL()
2017-01-12 01:34:17 -06:00
Erick Guevara
a7b77d4c06
adding tests for godo.SetBaseURL() to check BaseURL field and handle parse url errors
2017-01-12 00:50:14 -06:00
Maurício Linhares
3ab73e7c31
Merge pull request #119 from term1nal/refactor/make-linters-happy
...
make linters happy
2016-12-22 14:56:20 -03:00
Term1nal
728210a15c
Delete deadcode instead of comment it.
2016-12-22 09:19:55 -08:00
Carlos Villela
7c9bf15691
Adds support for creating droplets with monitoring ( #117 )
2016-12-21 23:05:53 -05:00
Term1nal
e9a24bffd6
Missed one!
2016-12-20 17:04:02 -08:00
Term1nal
b814e84f48
make linters happy
2016-12-20 16:00:17 -08:00
Phillip Baker
758b5be38e
Merge pull request #114 from digitalocean/update/storage-beta
...
Remove betastorageservice, in production.
2016-12-03 17:00:15 -05:00
Phillip Baker
8fdd58bf1e
Remove betastorageservice, in production.
2016-12-03 16:54:52 -05:00
Andrew Starr-Bochicchio
c9f63401f5
Merge pull request #115 from digitalocean/asb/bugfix/snapshot-size-type
...
SizeGigaBytes is an floating-point number.
2016-11-30 11:17:22 -05:00
Andrew Starr-Bochicchio
7242cded33
SizeGigaBytes is an floating-point number.
2016-11-30 10:26:58 -05:00
Phillip Baker
bec8984b6b
Merge pull request #108 from digitalocean/feature/snapshots
...
Add snapshots endpoints.
2016-11-29 22:58:31 -05:00
Phillip Baker
5c91372eb4
Merge pull request #111 from digitalocean/bugfix/image-root
...
Object roots should use a pointer to be consistent.
2016-11-22 20:52:38 -05:00