|
@@ -81,17 +81,21 @@ type SuccessfullyDeployedResource struct {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type FinalizeDeploymentRequest struct {
|
|
type FinalizeDeploymentRequest struct {
|
|
|
- Namespace string `json:"namespace"`
|
|
|
|
|
SuccessfulResources []*SuccessfullyDeployedResource `json:"successful_resources"`
|
|
SuccessfulResources []*SuccessfullyDeployedResource `json:"successful_resources"`
|
|
|
Subdomain string `json:"subdomain"`
|
|
Subdomain string `json:"subdomain"`
|
|
|
PRNumber uint `json:"pr_number"`
|
|
PRNumber uint `json:"pr_number"`
|
|
|
|
|
+
|
|
|
|
|
+ // legacy usage for backwards compatibility
|
|
|
|
|
+ Namespace string `json:"namespace"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type FinalizeDeploymentWithErrorsRequest struct {
|
|
type FinalizeDeploymentWithErrorsRequest struct {
|
|
|
- Namespace string `json:"namespace"`
|
|
|
|
|
SuccessfulResources []*SuccessfullyDeployedResource `json:"successful_resources"`
|
|
SuccessfulResources []*SuccessfullyDeployedResource `json:"successful_resources"`
|
|
|
Errors map[string]string `json:"errors" form:"required"`
|
|
Errors map[string]string `json:"errors" form:"required"`
|
|
|
PRNumber uint `json:"pr_number"`
|
|
PRNumber uint `json:"pr_number"`
|
|
|
|
|
+
|
|
|
|
|
+ // legacy usage for backwards compatibility
|
|
|
|
|
+ Namespace string `json:"namespace"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type UpdateDeploymentRequest struct {
|
|
type UpdateDeploymentRequest struct {
|
|
@@ -99,8 +103,10 @@ type UpdateDeploymentRequest struct {
|
|
|
|
|
|
|
|
PRBranchFrom string `json:"gh_pr_branch_from" form:"required"`
|
|
PRBranchFrom string `json:"gh_pr_branch_from" form:"required"`
|
|
|
CommitSHA string `json:"commit_sha" form:"required"`
|
|
CommitSHA string `json:"commit_sha" form:"required"`
|
|
|
- Namespace string `json:"namespace"`
|
|
|
|
|
PRNumber uint `json:"pr_number"`
|
|
PRNumber uint `json:"pr_number"`
|
|
|
|
|
+
|
|
|
|
|
+ // legacy usage for backwards compatibility
|
|
|
|
|
+ Namespace string `json:"namespace"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type ListDeploymentRequest struct {
|
|
type ListDeploymentRequest struct {
|
|
@@ -112,8 +118,10 @@ type UpdateDeploymentStatusRequest struct {
|
|
|
|
|
|
|
|
PRBranchFrom string `json:"gh_pr_branch_from" form:"required"`
|
|
PRBranchFrom string `json:"gh_pr_branch_from" form:"required"`
|
|
|
Status string `json:"status" form:"required,oneof=created creating inactive failed"`
|
|
Status string `json:"status" form:"required,oneof=created creating inactive failed"`
|
|
|
- Namespace string `json:"namespace"`
|
|
|
|
|
PRNumber uint `json:"pr_number"`
|
|
PRNumber uint `json:"pr_number"`
|
|
|
|
|
+
|
|
|
|
|
+ // legacy usage for backwards compatibility
|
|
|
|
|
+ Namespace string `json:"namespace"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type DeleteDeploymentRequest struct {
|
|
type DeleteDeploymentRequest struct {
|
|
@@ -121,8 +129,11 @@ type DeleteDeploymentRequest struct {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type GetDeploymentRequest struct {
|
|
type GetDeploymentRequest struct {
|
|
|
|
|
+ DeploymentID uint `schema:"id"`
|
|
|
|
|
+ PRNumber uint `schema:"pr_number"`
|
|
|
|
|
+
|
|
|
|
|
+ // legacy usage for backwards compatibility
|
|
|
Namespace string `schema:"namespace"`
|
|
Namespace string `schema:"namespace"`
|
|
|
- PRNumber uint `schema:"pr_number"`
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type PullRequest struct {
|
|
type PullRequest struct {
|