initial commit
This commit is contained in:
7
Interfaces/IAbstractInterface.cs
Normal file
7
Interfaces/IAbstractInterface.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
||||
{
|
||||
public interface IAbstractInterface
|
||||
{
|
||||
bool SaveChanges();
|
||||
}
|
||||
}
|
||||
18
Interfaces/IDeploymentGroupInterface.cs
Normal file
18
Interfaces/IDeploymentGroupInterface.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
||||
{
|
||||
public interface IDeploymentGroupInterface
|
||||
{
|
||||
ICollection<DeploymentGroupModel> GetDeploymentGroups();
|
||||
|
||||
DeploymentGroupModel GetDeploymentGroupById(Guid Id);
|
||||
bool AddDeploymentGroupById(DeploymentGroupModel deploymentgroup);
|
||||
bool DeleteDeploymentGroupById(DeploymentGroupModel deploymentgroup);
|
||||
bool EditDeploymentGroupById(DeploymentGroupModel deploymentgroup);
|
||||
|
||||
bool CheckDeploymentGroupById(Guid Id);
|
||||
|
||||
bool SaveChanges();
|
||||
}
|
||||
}
|
||||
17
Interfaces/IDeploymentInterface.cs
Normal file
17
Interfaces/IDeploymentInterface.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
||||
{
|
||||
public interface IDeploymentInterface
|
||||
{
|
||||
ICollection<DeploymentModel> GetDeployments();
|
||||
|
||||
DeploymentModel GetDeploymentById(Guid Id);
|
||||
bool AddDeploymentById(DeploymentModel deployment);
|
||||
bool DeleteDeploymentById(DeploymentModel deployment);
|
||||
bool EditDeploymentById(DeploymentModel deployment);
|
||||
|
||||
bool CheckDeploymentById(Guid Id);
|
||||
bool SaveChanges();
|
||||
}
|
||||
}
|
||||
25
Interfaces/IDomainInterface.cs
Normal file
25
Interfaces/IDomainInterface.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
||||
{
|
||||
public interface IDomainInterface
|
||||
{
|
||||
ICollection<DomainModel> GetDomains();
|
||||
|
||||
DomainModel GetDomainById(Guid Id);
|
||||
bool AddDomainById(DomainModel domain);
|
||||
bool DeleteDomainById(DomainModel domain);
|
||||
bool EditDomainById(DomainModel domain);
|
||||
|
||||
DomainModel GetDomainByIdInEnvironments(Guid Id);
|
||||
DomainModel GetVirtualMachinesByDomainId(Guid Id);
|
||||
|
||||
bool LinkDomainByIdToEnvironment(EnvironmentDomainsModel environmentDomain);
|
||||
bool UnlinkDomainByIdFromEnvironment(EnvironmentDomainsModel environmentDomain);
|
||||
|
||||
bool CheckDomainById(Guid Id);
|
||||
bool CheckDomainByName(string Name);
|
||||
|
||||
bool SaveChanges();
|
||||
}
|
||||
}
|
||||
22
Interfaces/IEnvironmentInterface.cs
Normal file
22
Interfaces/IEnvironmentInterface.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
||||
{
|
||||
public interface IEnvironmentInterface
|
||||
{
|
||||
ICollection<EnvironmentModel> GetEnvironments();
|
||||
EnvironmentModel GetEnvironmentById(Guid Id);
|
||||
bool AddEnvironmentById(EnvironmentModel environment);
|
||||
bool DeleteEnvironmentById(EnvironmentModel environment);
|
||||
bool EditEnvironmentById(EnvironmentModel environment);
|
||||
|
||||
EnvironmentModel GetLinkedDomainsByEnvironmentId(Guid Id);
|
||||
|
||||
ICollection<TemplateModel> GetAvailableTemplatesByEnvironmentId(Guid Id);
|
||||
|
||||
bool CheckEnvironmentById(Guid Id);
|
||||
bool CheckEnvironmentByName(String Name);
|
||||
|
||||
bool SaveChanges();
|
||||
}
|
||||
}
|
||||
16
Interfaces/IJobInterface.cs
Normal file
16
Interfaces/IJobInterface.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
||||
{
|
||||
public interface IJobInterface : IAbstractInterface
|
||||
{
|
||||
ICollection<JobModel> GetJobs();
|
||||
JobModel GetJobById(Guid Id);
|
||||
|
||||
bool CreateJobById(JobModel job);
|
||||
bool UpdateJobById(JobModel job);
|
||||
bool DeleteJobById(JobModel job);
|
||||
|
||||
bool CheckJobById(Guid Id);
|
||||
}
|
||||
}
|
||||
18
Interfaces/IRunbookInterface.cs
Normal file
18
Interfaces/IRunbookInterface.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
||||
{
|
||||
public interface IRunbookInterface
|
||||
{
|
||||
ICollection<RunbookModel> GetRunbooks();
|
||||
|
||||
RunbookModel GetRunbookById(Guid Id);
|
||||
bool AddRunbookById(RunbookModel runbook);
|
||||
bool EditRunbookById(RunbookModel runbook);
|
||||
|
||||
bool CheckRunbookById(Guid Id);
|
||||
bool CheckRunbookByName(string Name);
|
||||
|
||||
bool SaveChanges();
|
||||
}
|
||||
}
|
||||
16
Interfaces/IServiceInterface.cs
Normal file
16
Interfaces/IServiceInterface.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
||||
{
|
||||
public interface IServiceInterface
|
||||
{
|
||||
ICollection<ServiceModel> GetServices();
|
||||
|
||||
ServiceModel GetServiceById(Guid Id);
|
||||
bool CheckServiceById(Guid Id);
|
||||
|
||||
ServiceModel GetServiceByName(string Name);
|
||||
bool CheckServiceByName(string Name);
|
||||
|
||||
}
|
||||
}
|
||||
13
Interfaces/ITemplateInterface.cs
Normal file
13
Interfaces/ITemplateInterface.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
||||
{
|
||||
public interface ITemplateInterface
|
||||
{
|
||||
ICollection<TemplateModel> GetTemplates();
|
||||
|
||||
TemplateModel GetTemplateById(Guid Id);
|
||||
|
||||
bool CheckTemplateById(Guid Id);
|
||||
}
|
||||
}
|
||||
15
Interfaces/IVirtualMachineInterface.cs
Normal file
15
Interfaces/IVirtualMachineInterface.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
using System.Diagnostics.Eventing.Reader;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
||||
{
|
||||
public interface IVirtualMachineInterface
|
||||
{
|
||||
ICollection<VirtualMachineModel> GetVirtualMachines();
|
||||
|
||||
VirtualMachineModel GetVirtualMachineById(Guid Id);
|
||||
|
||||
bool CheckVirtualMachineById(Guid Id);
|
||||
bool CheckVirtualMachineByName(String Name);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user