Skip to content

Commit

Permalink
Merge pull request #224 from francois2metz/add-addon-fields
Browse files Browse the repository at this point in the history
Add ProvisionedAt and DeprovisionedAt fields on the addon
  • Loading branch information
EtienneM authored Aug 30, 2021
2 parents 5f04546 + 9def4de commit 9c0c7b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* fix(token): correctly deserialize the `ID` [#222](https://github.com/Scalingo/go-scalingo/pull/222)
* feat(token): add the `LastUsedAt` field [#222](https://github.com/Scalingo/go-scalingo/pull/222)
* feat(deployments): add the `DeploymentListWithPagination` method [#221](https://github.com/Scalingo/go-scalingo/pull/221)
* feat(addon): add the `ProvisionedAt` and `DeprovisionedAt` fields [#224](https://github.com/Scalingo/go-scalingo/pull/224)

## 4.13.1

Expand Down
15 changes: 9 additions & 6 deletions addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package scalingo

import (
"encoding/json"
"time"

"github.com/Scalingo/go-scalingo/v4/http"

Expand All @@ -28,12 +29,14 @@ const (
)

type Addon struct {
ID string `json:"id"`
AppID string `json:"app_id"`
ResourceID string `json:"resource_id"`
Status AddonStatus `json:"status"`
Plan *Plan `json:"plan"`
AddonProvider *AddonProvider `json:"addon_provider"`
ID string `json:"id"`
AppID string `json:"app_id"`
ResourceID string `json:"resource_id"`
Status AddonStatus `json:"status"`
Plan *Plan `json:"plan"`
AddonProvider *AddonProvider `json:"addon_provider"`
ProvisionedAt time.Time `json:"provisioned_at"`
DeprovisionedAt time.Time `json:"deprovisioned_at"`
}

type AddonsRes struct {
Expand Down

0 comments on commit 9c0c7b0

Please sign in to comment.