Removed legacy plesk models and imports
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Models.Plesk.Resources;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json;
|
||||
using RestSharp;
|
||||
|
||||
namespace Moonlight.App.ApiClients.CloudPanel;
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Requests;
|
||||
|
||||
public class CliCall
|
||||
{
|
||||
[JsonProperty("params")] public List<string> Params { get; set; } = new();
|
||||
|
||||
[JsonProperty("env")] public Dictionary<string, string> Env { get; set; } = new();
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Requests;
|
||||
|
||||
public class CreateDatabase
|
||||
{
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[JsonProperty("parent_domain")] public ParentDomainModel ParentDomain { get; set; } = new();
|
||||
|
||||
[JsonProperty("server_id")]
|
||||
public int ServerId { get; set; }
|
||||
|
||||
public class ParentDomainModel
|
||||
{
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Requests;
|
||||
|
||||
public class CreateDatabaseUser
|
||||
{
|
||||
[JsonProperty("login")]
|
||||
public string Login { get; set; }
|
||||
|
||||
[JsonProperty("password")]
|
||||
public string Password { get; set; }
|
||||
|
||||
[JsonProperty("database_id")]
|
||||
public int DatabaseId { get; set; }
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Requests;
|
||||
|
||||
public class CreateDomain
|
||||
{
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonProperty("hosting_type")]
|
||||
public string HostingType { get; set; }
|
||||
|
||||
[JsonProperty("hosting_settings")]
|
||||
public HostingSettingsModel HostingSettings { get; set; }
|
||||
|
||||
[JsonProperty("owner_client")]
|
||||
public OwnerClientModel OwnerClient { get; set; }
|
||||
|
||||
[JsonProperty("plan")]
|
||||
public PlanModel Plan { get; set; }
|
||||
|
||||
public partial class HostingSettingsModel
|
||||
{
|
||||
[JsonProperty("ftp_login")]
|
||||
public string FtpLogin { get; set; }
|
||||
|
||||
[JsonProperty("ftp_password")]
|
||||
public string FtpPassword { get; set; }
|
||||
}
|
||||
|
||||
public partial class OwnerClientModel
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
|
||||
public partial class PlanModel
|
||||
{
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Resources;
|
||||
|
||||
public class CliResult
|
||||
{
|
||||
[JsonProperty("code")]
|
||||
public int Code { get; set; }
|
||||
|
||||
[JsonProperty("stdout")] public string Stdout { get; set; } = "";
|
||||
|
||||
[JsonProperty("stderr")] public string Stderr { get; set; } = "";
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Resources;
|
||||
|
||||
public class Client
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonProperty("created")]
|
||||
public DateTimeOffset Created { get; set; }
|
||||
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("company")]
|
||||
public string Company { get; set; }
|
||||
|
||||
[JsonProperty("login")]
|
||||
public string Login { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public long Status { get; set; }
|
||||
|
||||
[JsonProperty("email")]
|
||||
public string Email { get; set; }
|
||||
|
||||
[JsonProperty("locale")]
|
||||
public string Locale { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public Guid Guid { get; set; }
|
||||
|
||||
[JsonProperty("owner_login")]
|
||||
public string OwnerLogin { get; set; }
|
||||
|
||||
[JsonProperty("external_id")]
|
||||
public string ExternalId { get; set; }
|
||||
|
||||
[JsonProperty("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; }
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Resources;
|
||||
|
||||
public class CreateResult
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public Guid Guid { get; set; }
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Resources;
|
||||
|
||||
public class Database
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; }
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Resources;
|
||||
|
||||
public class DatabaseServer
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonProperty("host")]
|
||||
public string Host { get; set; }
|
||||
|
||||
[JsonProperty("port")]
|
||||
public int Port { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
[JsonProperty("db_count")]
|
||||
public int DbCount { get; set; }
|
||||
|
||||
[JsonProperty("is_default")]
|
||||
public bool IsDefault { get; set; }
|
||||
|
||||
[JsonProperty("is_local")]
|
||||
public bool IsLocal { get; set; }
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Resources;
|
||||
|
||||
public class DatabaseUser
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonProperty("login")]
|
||||
public string Login { get; set; }
|
||||
|
||||
[JsonProperty("database_id")]
|
||||
public int DatabaseId { get; set; }
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Models.Plesk.Resources;
|
||||
|
||||
public class ServerStatus
|
||||
{
|
||||
[JsonProperty("platform")]
|
||||
public string Platform { get; set; }
|
||||
|
||||
[JsonProperty("hostname")]
|
||||
public string Hostname { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public Guid Guid { get; set; }
|
||||
|
||||
[JsonProperty("panel_version")]
|
||||
public string PanelVersion { get; set; }
|
||||
}
|
||||
@@ -1,13 +1,10 @@
|
||||
using Logging.Net;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Moonlight.App.ApiClients.CloudPanel;
|
||||
using Moonlight.App.ApiClients.CloudPanel.Requests;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Exceptions;
|
||||
using Moonlight.App.Helpers;
|
||||
using Moonlight.App.Helpers.Files;
|
||||
using Moonlight.App.Models.Plesk.Requests;
|
||||
using Moonlight.App.Models.Plesk.Resources;
|
||||
using Moonlight.App.Repositories;
|
||||
using FileAccess = Moonlight.App.Helpers.Files.FileAccess;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
@using Moonlight.App.Database.Entities
|
||||
@using Moonlight.App.Models.Forms
|
||||
@using Moonlight.App.Models.Plesk.Resources
|
||||
@using Moonlight.App.Services
|
||||
|
||||
@inject SmartTranslateService SmartTranslateService
|
||||
|
||||
Reference in New Issue
Block a user