-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Fernando-Dourado/fernando/overrides-v2
add support to move overrides v2 entities
- Loading branch information
Showing
4 changed files
with
193 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package harness | ||
|
||
type OverridesV2Response struct { | ||
Status string `json:"status"` | ||
Code string `json:"code"` | ||
Message string `json:"message"` | ||
Data OverridesV2Data `json:"data"` | ||
} | ||
|
||
type OverridesV2Data struct { | ||
TotalPages int64 `json:"totalPages"` | ||
TotalItems int64 `json:"totalItems"` | ||
PageItemCount int64 `json:"pageItemCount"` | ||
PageSize int64 `json:"pageSize"` | ||
Content []OverridesV2Content `json:"content"` | ||
PageIndex int64 `json:"pageIndex"` | ||
Empty bool `json:"empty"` | ||
} | ||
|
||
type OverridesV2Content struct { | ||
Identifier string `json:"identifier"` | ||
AccountID string `json:"accountId"` | ||
OrgIdentifier string `json:"orgIdentifier"` | ||
ProjectIdentifier string `json:"projectIdentifier"` | ||
EnvironmentRef string `json:"environmentRef"` | ||
ServiceRef string `json:"serviceRef,omitempty"` | ||
InfraIdentifier string `json:"infraIdentifier,omitempty"` | ||
Type OverridesV2Type `json:"type"` | ||
StoreType string `json:"storeType,omitempty"` | ||
} | ||
|
||
type OverridesV2Type string | ||
|
||
const ( | ||
OV2_Global OverridesV2Type = "ENV_GLOBAL_OVERRIDE" | ||
OV2_Service OverridesV2Type = "ENV_SERVICE_OVERRIDE" | ||
OV2_Infra OverridesV2Type = "INFRA_GLOBAL_OVERRIDE" | ||
OV2_ServiceInfra OverridesV2Type = "INFRA_SERVICE_OVERRIDE" | ||
) |
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