Skip to content

Commit

Permalink
fix common on exported type BackupScheduleResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
allen-munsch committed Oct 15, 2018
1 parent 0fe782d commit 4544a91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,12 +656,13 @@ type BackupSchedule struct {
Dom int `json:"dom"`
}

// BackupScheduleResponse details about a virtual machines backup schedule
type BackupScheduleResponse struct {
Enabled bool `json:"enabled"`
BackupSchedule
}

// BackupGetSchedule
// BackupGetSchedule returns a virtual machines backup schedule
func (c *Client) BackupGetSchedule(id string) (BackupScheduleResponse, error) {
values := url.Values{
"SUBID": {id},
Expand All @@ -673,7 +674,7 @@ func (c *Client) BackupGetSchedule(id string) (BackupScheduleResponse, error) {
return bsr, nil
}

// BackupSetSchedule
// BackupSetSchedule sets the backup schedule given a BackupSchedule struct
func (c *Client) BackupSetSchedule(id string, bs BackupSchedule) error {
values := url.Values{
"SUBID": {id},
Expand Down

0 comments on commit 4544a91

Please sign in to comment.