Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add private_network_ids field for the app model #384

Merged
merged 3 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## To Be Released

* feat(apps): add the private_network_ids field to the model
SCedricThomas marked this conversation as resolved.
Show resolved Hide resolved

## 7.0.0

* feat(domains): Add `letsencrypt_enabled` parameter
Expand Down
43 changes: 22 additions & 21 deletions apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,28 @@ type AppLinks struct {
}

type App struct {
ID string `json:"id"`
Name string `json:"name"`
Region string `json:"region"`
Owner Owner `json:"owner"`
GitURL string `json:"git_url"`
URL string `json:"url"`
BaseURL string `json:"base_url"`
Status AppStatus `json:"status"`
LastDeployedAt *time.Time `json:"last_deployed_at"`
LastDeployedBy string `json:"last_deployed_by"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
Links *AppLinks `json:"links"`
StackID string `json:"stack_id"`
StickySession bool `json:"sticky_session"`
ForceHTTPS bool `json:"force_https"`
RouterLogs bool `json:"router_logs"`
DataAccessConsent *DataAccessConsent `json:"data_access_consent,omitempty"`
Flags map[string]bool `json:"flags"`
Limits map[string]interface{} `json:"limits"`
HDSResource bool `json:"hds_resource"`
ID string `json:"id"`
Name string `json:"name"`
Region string `json:"region"`
Owner Owner `json:"owner"`
GitURL string `json:"git_url"`
URL string `json:"url"`
BaseURL string `json:"base_url"`
Status AppStatus `json:"status"`
LastDeployedAt *time.Time `json:"last_deployed_at"`
LastDeployedBy string `json:"last_deployed_by"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
Links *AppLinks `json:"links"`
StackID string `json:"stack_id"`
StickySession bool `json:"sticky_session"`
ForceHTTPS bool `json:"force_https"`
RouterLogs bool `json:"router_logs"`
DataAccessConsent *DataAccessConsent `json:"data_access_consent,omitempty"`
Flags map[string]bool `json:"flags"`
Limits map[string]interface{} `json:"limits"`
HDSResource bool `json:"hds_resource"`
PrivateNetworksIDs []string `json:"private_networks_ids"`
}

func (app App) String() string {
Expand Down