-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[droplets]: add droplet backup policies (#749)
* [droplets]: add droplet backup policies * add droplet backup policy to droplet create request * updates in code: correct types, omitempty, returns; add tests * Update droplets.go Co-authored-by: Andrew Starr-Bochicchio <[email protected]> * Update droplets.go Co-authored-by: Andrew Starr-Bochicchio <[email protected]> * Update droplets.go Co-authored-by: Andrew Starr-Bochicchio <[email protected]> * rename BackupPolicyCreateRequest to DropletBackupPolicyRequest * fix test for listing all policies after changes in a code * rename BackupPolicy to DropletBackupPolicyConfig * add EnableBackupsWithPolicy to droplet actions * update EnableBackupsWithPolicy: use change_backup_policy type * remove omitempty for backup policy hour in DropletBackupPolicyRequest to be able to use zero as a value when encoding in client.NewRequest * Update droplet_actions.go Co-authored-by: Andrew Starr-Bochicchio <[email protected]> * add ChangeBackupPolicy; use DropletBackupPolicyRequest instead of map in request; update and add tests for changes made --------- Co-authored-by: Andrew Starr-Bochicchio <[email protected]>
- Loading branch information
1 parent
29a46b0
commit a11b76f
Showing
4 changed files
with
414 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.