mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
E2C: Resources table refactor (#85585)
* E2C: Resources table refactor * update swagger spec with enums * use native resource item type, rather than our mock type * unit tests for resources table * update spec
This commit is contained in:
@@ -143,6 +143,7 @@ type Base64HGInstance struct {
|
||||
|
||||
// dtos for cms api
|
||||
|
||||
// swagger:enum MigrateDataType
|
||||
type MigrateDataType string
|
||||
|
||||
const (
|
||||
@@ -162,6 +163,7 @@ type MigrateDataRequestItemDTO struct {
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
||||
// swagger:enum ItemStatus
|
||||
type ItemStatus string
|
||||
|
||||
const (
|
||||
@@ -175,8 +177,11 @@ type MigrateDataResponseDTO struct {
|
||||
}
|
||||
|
||||
type MigrateDataResponseItemDTO struct {
|
||||
Type MigrateDataType `json:"type"`
|
||||
RefID string `json:"refId"`
|
||||
Status ItemStatus `json:"status"`
|
||||
Error string `json:"error,omitempty"`
|
||||
// required:true
|
||||
Type MigrateDataType `json:"type"`
|
||||
// required:true
|
||||
RefID string `json:"refId"`
|
||||
// required:true
|
||||
Status ItemStatus `json:"status"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user