CloudMigrations: add Library Element as a valid migration resource type (#93781)

This commit is contained in:
Matheus Macabu
2024-09-26 15:29:28 +02:00
committed by GitHub
parent afe464bc20
commit 14abf2dab3
8 changed files with 17 additions and 16 deletions
+4 -3
View File
@@ -119,9 +119,10 @@ type MigrateDataResponseItemDTO struct {
type MigrateDataType string
const (
DashboardDataType MigrateDataType = "DASHBOARD"
DatasourceDataType MigrateDataType = "DATASOURCE"
FolderDataType MigrateDataType = "FOLDER"
DashboardDataType MigrateDataType = "DASHBOARD"
DatasourceDataType MigrateDataType = "DATASOURCE"
FolderDataType MigrateDataType = "FOLDER"
LibraryElementDataType MigrateDataType = "LIBRARY_ELEMENT"
)
// swagger:enum ItemStatus
@@ -4,12 +4,6 @@ import "time"
type MigrateDataType string
const (
DashboardDataType MigrateDataType = "DASHBOARD"
DatasourceDataType MigrateDataType = "DATASOURCE"
FolderDataType MigrateDataType = "FOLDER"
)
type MigrateDataRequestDTO struct {
Items []MigrateDataRequestItemDTO `json:"items"`
}
+4 -3
View File
@@ -79,9 +79,10 @@ type CloudMigrationResource struct {
type MigrateDataType string
const (
DashboardDataType MigrateDataType = "DASHBOARD"
DatasourceDataType MigrateDataType = "DATASOURCE"
FolderDataType MigrateDataType = "FOLDER"
DashboardDataType MigrateDataType = "DASHBOARD"
DatasourceDataType MigrateDataType = "DATASOURCE"
FolderDataType MigrateDataType = "FOLDER"
LibraryElementDataType MigrateDataType = "LIBRARY_ELEMENT"
)
type ItemStatus string