optimization update, web scheduler test-integration

This commit is contained in:
kkb 2023-12-14 11:09:03 +01:00
parent 3c9ccaafeb
commit 1591618c2c
103 changed files with 4826 additions and 1502 deletions

View file

@ -1,4 +1,6 @@
namespace Insight.Web.Constants;
using static Insight.Web.Constants.Navigation.Monitoring;
namespace Insight.Web.Constants;
public static class Navigation
{
@ -13,44 +15,22 @@ public static class Navigation
public static class Account
{
public const string Index = "account";
public const string Login = "account/login";
public const string LoginTFA = "account/login/{key:guid}";
public const string SignIn = "account/signin";
public const string SignInTFA = "account/signin/2fa";
public const string Logout = "account/logout";
public const string Lockout = "account/lockout";
public const string Profile = "account/profile";
public const string ChangePassword = "account/changepassword";
public const string Login = Index + "/login";
public const string LoginTFA = Login + "/{key:guid}";
public const string SignIn = Index + "/signin";
public const string SignInTFA = SignIn + "/2fa";
public const string Logout = Index + "/logout";
public const string Lockout = Index + "/lockout";
public const string Profile = Index + "/profile";
public const string ChangePassword = Index + "/changepassword";
public static string LoginHref(string redirect)
{
if (string.IsNullOrWhiteSpace(redirect))
{
return Login;
}
public static string LoginHref(string redirect) => string.IsNullOrWhiteSpace(redirect) ? Login : $"{Login}?redirect={redirect}";
public static string LoginTFAHref(Guid key) => LoginTFA.Replace("{key:guid}", key.ToString());
return $"{Login}?redirect={redirect}";
}
public static string SignInHref(Guid key) => $"{SignIn}?key={key}";
public static string SignInTFAHref(Guid key) => $"{SignInTFA}?key={key}";
public static string LoginTFAHref(Guid key)
{
return LoginTFA.Replace("{key:guid}", key.ToString());
}
public static string SignInHref(Guid key)
{
return $"{SignIn}?key={key}";
}
public static string SignInTFAHref(Guid key)
{
return $"{SignInTFA}?key={key}";
}
public static string ChangePasswordHref(Guid key)
{
return $"{ChangePassword}?key={key}";
}
public static string ChangePasswordHref(Guid key) => $"{ChangePassword}?key={key}";
}
public static class Monitoring
@ -59,36 +39,36 @@ public static class Navigation
public static class Maintenance
{
public const string Index = "monitoring/maintenance";
public const string Index = Monitoring.Index + "/maintenance";
public static class Drives
{
public const string Index = "monitoring/maintenance/drives";
public const string Index = Monitoring.Index + "/drives";
}
public static class StoragePools
{
public const string Index = "monitoring/maintenance/storagepools";
public const string Index = Monitoring.Index + "/storagepools";
}
public static class Volumes
{
public const string Index = "monitoring/maintenance/volumes";
public const string Index = Monitoring.Index + "/volumes";
}
public static class Guests
{
public const string Index = "monitoring/maintenance/guests";
public const string Index = Monitoring.Index + "/guests";
}
public static class Snapshots
{
public const string Index = "monitoring/maintenance/snapshots";
public const string Index = Monitoring.Index + "/snapshots";
}
public static class Updates
{
public const string Index = "monitoring/maintenance/updates";
public const string Index = Monitoring.Index + "/updates";
}
}
}
@ -97,106 +77,58 @@ public static class Navigation
{
public const string Index = "management";
public static class Overview
{
public const string Index = "management/overview";
}
public static class Accounts
{
public const string Index = "management/accounts";
public const string Details = "management/accounts/{accountId}";
public const string Index = Management.Index + "/accounts";
public const string Details = Index + "/{accountId}";
public static string DetailsHref(string? accountId)
{
return Details.Replace("{accountId}", accountId);
}
public static string DetailsHref(string? accountId) => Details.Replace("{accountId}", accountId);
}
public static class Customers
{
public const string Index = "management/customers";
public const string Details = "management/customers/{customerId}";
public const string Hosts = "management/customers/{customerId}/hosts";
public const string HostsAssign = "management/customers/{customerId}/hosts/assign";
public const string Index = Management.Index + "/customers";
public const string Details = Index + "/{customerId}";
public const string Hosts = Details + "/hosts";
public const string HostsAssign = Hosts + "/assign";
public static string DetailsHref(string? customerId)
{
return Details.Replace("{customerId}", customerId);
}
public static string HostsHref(string? customerId)
{
return Hosts.Replace("{customerId}", customerId);
}
public static string HostsAssignHref(string? customerId)
{
return HostsAssign.Replace("{customerId}", customerId);
}
public static string DetailsHref(string? customerId) => Details.Replace("{customerId}", customerId);
public static string HostsHref(string? customerId) => Hosts.Replace("{customerId}", customerId);
public static string HostsAssignHref(string? customerId) => HostsAssign.Replace("{customerId}", customerId);
}
public static class Agents
{
public const string Index = "management/agents";
public const string Details = "management/agents/{agentId}";
public const string Logs = "management/agents/{agentId}/logs";
public const string HostAssign = "management/agents/{agentId}/assign";
public const string Index = Management.Index + "/agents";
public const string Details = Index + "/{agentId}";
public const string Logs = Details + "/logs";
public const string HostAssign = Details + "/assign";
public static string DetailsHref(string? agentId)
{
return Details.Replace("{agentId}", agentId);
}
public static string LogsHref(string? agentId)
{
return Logs.Replace("{agentId}", agentId);
}
public static string HostAssingHref(string? agentId)
{
return HostAssign.Replace("{agentId}", agentId);
}
public static string DetailsHref(string? agentId) => Details.Replace("{agentId}", agentId);
public static string LogsHref(string? agentId) => Logs.Replace("{agentId}", agentId);
public static string HostAssingHref(string? agentId) => HostAssign.Replace("{agentId}", agentId);
}
public static class Hosts
{
public const string Index = "management/hosts";
public const string Details = "management/hosts/{hostId}";
public const string Logs = "management/hosts/{hostId}/logs";
public const string CustomerAssign = "management/hosts/{hostId}/customer/assign";
public const string AgentAssign = "management/hosts/{hostId}/agent/assign";
public const string Index = Management.Index + "/hosts";
public const string Details = Index + "/{hostId}";
public const string Logs = Details + "/logs";
public const string CustomerAssign = Details + "/customer/assign";
public const string AgentAssign = Details + "/agent/assign";
public static string DetailsHref(string? hostId)
{
return Details.Replace("{hostId}", hostId);
}
public static string LogsHref(string? hostId)
{
return Logs.Replace("{hostId}", hostId);
}
public static string CustomerAssingHref(string? hostId)
{
return CustomerAssign.Replace("{hostId}", hostId);
}
public static string AgentAssingHref(string? hostId)
{
return AgentAssign.Replace("{hostId}", hostId);
}
public static string DetailsHref(string? hostId) => Details.Replace("{hostId}", hostId);
public static string LogsHref(string? hostId) => Logs.Replace("{hostId}", hostId);
public static string CustomerAssingHref(string? hostId) => CustomerAssign.Replace("{hostId}", hostId);
public static string AgentAssingHref(string? hostId) => AgentAssign.Replace("{hostId}", hostId);
public static class Actions
{
public static class Console
{
public const string Index = "management/hosts/{hostId}/console";
public const string Index = Hosts.Details + "/console";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
}
@ -204,190 +136,121 @@ public static class Navigation
{
public static class Os
{
public const string Details = "management/hosts/{hostId}/os";
public const string Details = Hosts.Details + "/os";
public static string DetailsHref(string? hostId)
{
return Details.Replace("{hostId}", hostId);
}
public static string DetailsHref(string? hostId) => Details.Replace("{hostId}", hostId);
}
public static class Updates
{
public static class Installed
{
public const string Index = "management/hosts/{hostId}/updates/installed";
public const string Index = Hosts.Details + "/updates/installed";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class Pending
{
public const string Index = "management/hosts/{hostId}/updates/pending";
public const string Index = Hosts.Details + "/updates/pending";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
}
public static class Sessions
{
public const string Index = "management/hosts/{hostId}/sessions";
public const string Index = Hosts.Details + "/sessions";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class Software
{
public const string Index = "management/hosts/{hostId}/software";
public const string Index = Hosts.Details + "/software";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class Services
{
public const string Index = "management/hosts/{hostId}/services";
public const string Index = Hosts.Details + "/services";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class Printers
{
public const string Index = "management/hosts/{hostId}/printers";
public const string Index = Hosts.Details + "/printers";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class Volumes
{
public const string Index = "management/hosts/{hostId}/volumes";
public const string Details = "management/hosts/{hostId}/volumes/{volumeId}";
public const string Index = Hosts.Details + "/volumes";
public const string Details = Index + "/{volumeId}";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string DetailsHref(string? hostId, string? volumeId)
{
return Details.Replace("{hostId}", hostId).Replace("{volumeId}", volumeId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
public static string DetailsHref(string? hostId, string? volumeId) => Details.Replace("{hostId}", hostId).Replace("{volumeId}", volumeId);
}
public static class Users
{
public const string Index = "management/hosts/{hostId}/users";
public const string Details = "management/hosts/{hostId}/users/{userId}";
public const string Index = Hosts.Details + "/users";
public const string Details = Index + "/{userId}";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string DetailsHref(string? hostId, string? userId)
{
return Details.Replace("{hostId}", hostId).Replace("{userId}", userId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
public static string DetailsHref(string? hostId, string? userId) => Details.Replace("{hostId}", hostId).Replace("{userId}", userId);
}
public static class Groups
{
public const string Index = "management/hosts/{hostId}/groups";
public const string Index = Hosts.Details + "/groups";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class StoragePools
{
public const string Index = "management/hosts/{hostId}/storagepools";
public const string Details = "management/hosts/{hostId}/storagepools/{storagePoolId}";
public const string Index = Hosts.Details + "/storagepools";
public const string Details = Index + "/{storagePoolId}";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string DetailsHref(string? hostId, string? storagePoolId)
{
return Details.Replace("{hostId}", hostId).Replace("{storagePoolId}", storagePoolId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
public static string DetailsHref(string? hostId, string? storagePoolId) => Details.Replace("{hostId}", hostId).Replace("{storagePoolId}", storagePoolId);
public static class VirtualDisks
{
public const string Index = "management/hosts/{hostId}/storagepools/{storagePoolId}/virtualdisks";
public const string Details = "management/hosts/{hostId}/storagepools/{storagePoolId}/virtualdisks/{virtualDiskId}";
public const string Index = StoragePools.Details + "/virtualdisks";
public const string Details = Index + "/{virtualDiskId}";
public static string IndexHref(string? hostId, string? storagePoolId)
{
return Index.Replace("{hostId}", hostId).Replace("{storagePoolId}", storagePoolId);
}
public static string DetailsHref(string? hostId, string? storagePoolId, string? virtualDiskId)
{
return Details.Replace("{hostId}", hostId).Replace("{storagePoolId}", storagePoolId).Replace("{virtualDiskId}", virtualDiskId);
}
public static string IndexHref(string? hostId, string? storagePoolId) => Index.Replace("{hostId}", hostId).Replace("{storagePoolId}", storagePoolId);
public static string DetailsHref(string? hostId, string? storagePoolId, string? virtualDiskId) => Details.Replace("{hostId}", hostId).Replace("{storagePoolId}", storagePoolId).Replace("{virtualDiskId}", virtualDiskId);
}
public static class PhysicalDisks
{
public const string Index = "management/hosts/{hostId}/storagepools/{storagePoolId}/physicaldisks";
public const string Details = "management/hosts/{hostId}/storagepools/{storagePoolId}/physicaldisks/{physicalDiskId}";
public const string Index = StoragePools.Details + "/physicaldisks";
public const string Details = Index + "/{physicalDiskId}";
public static string IndexHref(string? hostId, string? storagePoolId)
{
return Index.Replace("{hostId}", hostId).Replace("{storagePoolId}", storagePoolId);
}
public static string DetailsHref(string? hostId, string? storagePoolId, string? physicalDiskId)
{
return Details.Replace("{hostId}", hostId).Replace("{storagePoolId}", storagePoolId).Replace("{physicalDiskId}", physicalDiskId);
}
public static string IndexHref(string? hostId, string? storagePoolId) => Index.Replace("{hostId}", hostId).Replace("{storagePoolId}", storagePoolId);
public static string DetailsHref(string? hostId, string? storagePoolId, string? physicalDiskId) => Details.Replace("{hostId}", hostId).Replace("{storagePoolId}", storagePoolId).Replace("{physicalDiskId}", physicalDiskId);
}
}
public static class VirtualMaschines
{
public const string Index = "management/hosts/{hostId}/virtualmaschines";
public const string Details = "management/hosts/{hostId}/virtualmaschines/{virtualMaschineId}";
public const string Index = Hosts.Details + "/virtualmaschines";
public const string Details = Index + "/{virtualMaschineId}";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string DetailsHref(string? hostId, string? virtualMaschineId)
{
return Details.Replace("{hostId}", hostId).Replace("{virtualMaschineId}", virtualMaschineId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
public static string DetailsHref(string? hostId, string? virtualMaschineId) => Details.Replace("{hostId}", hostId).Replace("{virtualMaschineId}", virtualMaschineId);
public static class Snapshots
{
public const string Details = "management/hosts/{hostId}/virtualmaschines/{virtualMaschineId}/snapshots/{snapshotId}";
public const string Details = VirtualMaschines.Details + "/snapshots/{snapshotId}";
public static string DetailsHref(string? hostId, string? virtualMaschineId, string? snapshotId)
{
return Details.Replace("{hostId}", hostId).Replace("{virtualMaschineId}", virtualMaschineId).Replace("{snapshotId}", snapshotId);
}
public static string DetailsHref(string? hostId, string? virtualMaschineId, string? snapshotId) => Details.Replace("{hostId}", hostId).Replace("{virtualMaschineId}", virtualMaschineId).Replace("{snapshotId}", snapshotId);
}
}
}
@ -396,63 +259,44 @@ public static class Navigation
{
public static class Interfaces
{
public const string Index = "management/hosts/{hostId}/interfaces";
public const string Details = "management/hosts/{hostId}/interfaces/{interfaceId}";
public const string Index = Hosts.Details + "/interfaces";
public const string Details = Index + "/{interfaceId}";
public const string Addresses = "management/hosts/{hostId}/interfaces/{interfaceId}/addresses";
public const string Nameservers = "management/hosts/{hostId}/interfaces/{interfaceId}/nameservers";
public const string Gateways = "management/hosts/{hostId}/interfaces/{interfaceId}/gateways";
public const string Routes = "management/hosts/{hostId}/interfaces/{interfaceId}/routes";
public const string Addresses = Details + "/addresses";
public const string Nameservers = Details + "/nameservers";
public const string Gateways = Details + "/gateways";
public const string Routes = Details + "/routes";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string DetailsHref(string? hostId, string? interfaceId)
{
return Details.Replace("{hostId}", hostId).Replace("{interfaceId}", interfaceId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
public static string DetailsHref(string? hostId, string? interfaceId) => Details.Replace("{hostId}", hostId).Replace("{interfaceId}", interfaceId);
}
public static class Addresses
{
public const string Index = "management/hosts/{hostId}/addresses";
public const string Index = Hosts.Details + "/addresses";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class Gateways
{
public const string Index = "management/hosts/{hostId}/gateways";
public const string Index = Details + "/gateways";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class Nameservers
{
public const string Index = "management/hosts/{hostId}/nameservers";
public const string Index = Hosts.Details + "/nameservers";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class Routes
{
public const string Index = "management/hosts/{hostId}/routes";
public const string Index = Hosts.Details + "/routes";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
}
@ -460,300 +304,264 @@ public static class Navigation
{
public static class Mainboard
{
public const string Details = "management/hosts/{hostId}/mainboard";
public const string Details = Hosts.Details + "/mainboard";
public static string DetailsHref(string? hostId)
{
return Details.Replace("{hostId}", hostId);
}
public static string DetailsHref(string? hostId) => Details.Replace("{hostId}", hostId);
}
public static class Processors
{
public const string Details = "management/hosts/{hostId}/processors";
public const string Details = Hosts.Details + "/processors";
public static string DetailsHref(string? hostId)
{
return Details.Replace("{hostId}", hostId);
}
public static string DetailsHref(string? hostId) => Details.Replace("{hostId}", hostId);
}
public static class Memory
{
public const string Index = "management/hosts/{hostId}/memory";
public const string Index = Hosts.Details + "/memory";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class Drives
{
public const string Index = "management/hosts/{hostId}/drives";
public const string Index = Hosts.Details + "/drives";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
public static class Videocards
{
public const string Index = "management/hosts/{hostId}/videocards";
public const string Index = Hosts.Details + "/videocards";
public static string IndexHref(string? hostId)
{
return Index.Replace("{hostId}", hostId);
}
public static string IndexHref(string? hostId) => Index.Replace("{hostId}", hostId);
}
}
}
public static class HostGroups
{
public const string Index = "management/hostgroups";
public const string Details = "management/hostgroups/{groupId}";
public const string Hosts = "management/hostgroups/{groupId}/hosts";
public const string HostsAssign = "management/hostgroups/{groupId}/hosts/assign";
public const string Index = Management.Index + "/hostgroups";
public const string Details = Index + "/{groupId}";
public const string Hosts = Details + "/hosts";
public const string HostsAssign = Details + "/assign";
public static string DetailsHref(string? groupId)
public static string DetailsHref(string? groupId) => Details.Replace("{groupId}", groupId);
public static string HostsHref(string? groupId) => Hosts.Replace("{groupId}", groupId);
public static string HostsAssignHref(string? groupId) => HostsAssign.Replace("{groupId}", groupId);
}
public static class Scheduler
{
public const string Index = Management.Index + "/scheduler";
public static class Jobs
{
return Details.Replace("{groupId}", groupId);
public const string Index = Scheduler.Index + "/jobs";
public const string Details = Index + "/{jobId}";
public const string Tasks = Details + "/tasks";
public const string TasksAssign = Tasks + "/assign";
public const string Triggers = Details + "/triggers";
public const string TriggersAssign = Triggers + "/assign";
public static string DetailsHref(string? jobId) => Details.Replace("{jobId}", jobId);
public static string TasksHref(string? jobId) => Tasks.Replace("{jobId}", jobId);
public static string TasksAssignHref(string? jobId) => TasksAssign.Replace("{jobId}", jobId);
public static string TriggersHref(string? jobId) => Triggers.Replace("{jobId}", jobId);
public static string TriggersAssignHref(string? jobId) => TriggersAssign.Replace("{jobId}", jobId);
}
public static string HostsHref(string? groupId)
public static class Tasks
{
return Hosts.Replace("{groupId}", groupId);
public const string Index = Scheduler.Index + "/tasks";
public const string Details = Index + "/{taskId}";
public const string Jobs = Details + "/jobs";
public static string DetailsHref(string? taskId) => Details.Replace("{taskId}", taskId);
public static string JobsHref(string? taskId) => Jobs.Replace("{taskId}", taskId);
}
public static string HostsAssignHref(string? groupId)
public static class Triggers
{
return HostsAssign.Replace("{groupId}", groupId);
public const string Index = Scheduler.Index + "/triggers";
public const string Details = Index + "/{triggerId}";
public const string Jobs = Details + "/jobs";
public static string DetailsHref(string? triggerId) => Details.Replace("{triggerId}", triggerId);
public static string JobsHref(string? triggerId) => Jobs.Replace("{triggerId}", triggerId);
}
}
}
public static class Inventory
{
public const string Index = "inventory";
public static class Systems
{
public const string Index = Inventory.Index + "/system";
public static class Os
{
public const string Index = "inventory/os";
public const string Hosts = "inventory/os/{osName}/hosts";
public const string Guests = "inventory/os/{osName}/guests";
public const string Index = Systems.Index + "/os";
public const string Hosts = Index + "/{osName}/hosts";
public const string Guests = Index + "/{osName}/guests";
public static string HostsHref(string? osName)
{
return Hosts.Replace("{osName}", osName);
}
public static string GuestsHref(string? osName)
{
return Guests.Replace("{osName}", osName);
}
public static string HostsHref(string? osName) => Hosts.Replace("{osName}", osName);
public static string GuestsHref(string? osName) => Guests.Replace("{osName}", osName);
}
public static class Updates
{
public const string Index = "inventory/updates";
public const string Hosts = "inventory/updates/{updateName}/hosts";
public const string Index = Systems.Index + "/updates";
public const string Hosts = Index + "/{updateName}/hosts";
public static string HostsHref(string? updateName)
{
return Hosts.Replace("{updateName}", updateName);
}
public static string HostsHref(string? updateName) => Hosts.Replace("{updateName}", updateName);
}
public static class Software
{
public const string Index = "inventory/software";
public const string Hosts = "inventory/software/{softwareName}/hosts";
public const string Index = Systems.Index + "/software";
public const string Hosts = Index + "/{softwareName}/hosts";
public static string HostsHref(string? software)
{
return Hosts.Replace("{softwareName}", software);
}
public static string HostsHref(string? software) => Hosts.Replace("{softwareName}", software);
}
public static class Services
{
public const string Index = "inventory/services";
public const string Hosts = "inventory/services/{serviceName}/hosts";
public const string Index = Systems.Index + "/services";
public const string Hosts = Index + "/{serviceName}/hosts";
public static string HostsHref(string? serviceName)
{
return Hosts.Replace("{serviceName}", serviceName);
}
public static string HostsHref(string? serviceName) => Hosts.Replace("{serviceName}", serviceName);
}
public static class Sessions
{
public const string Index = "inventory/sessions";
public const string Index = Systems.Index + "/sessions";
}
public static class Printers
{
public const string Index = "inventory/printers";
public const string Index = Systems.Index + "/printers";
}
public static class Volumes
{
public const string Index = "inventory/volumes";
public const string Index = Systems.Index + "/volumes";
}
public static class Users
{
public const string Index = "inventory/users";
public const string Hosts = "inventory/users/{userName}/hosts";
public const string Index = Systems.Index + "/users";
public const string Hosts = Index + "/{userName}/hosts";
public static string HostsHref(string? userName)
{
return Hosts.Replace("{userName}", userName);
}
public static string HostsHref(string? userName) => Hosts.Replace("{userName}", userName);
}
public static class Groups
{
public const string Index = "inventory/groups";
public const string Hosts = "inventory/groups/{groupName}/hosts";
public const string Index = Systems.Index + "/groups";
public const string Hosts = Index + "/{groupName}/hosts";
public static string HostsHref(string? groupName)
{
return Hosts.Replace("{groupName}", groupName);
}
public static string HostsHref(string? groupName) => Hosts.Replace("{groupName}", groupName);
}
public static class StoragePools
{
public const string Index = "inventory/storagepools";
public const string Index = Systems.Index + "/storagepools";
}
public static class VirtualMaschines
{
public const string Index = "inventory/virtualmaschines";
public const string Index = Systems.Index + "/virtualmaschines";
}
}
public static class Network
{
public const string Index = Inventory.Index + "/network";
public static class Interfaces
{
public const string Index = "inventory/interfaces";
public const string Index = Network.Index + "/interfaces";
}
public static class Addresses
{
public const string Index = "inventory/addresses";
public const string Hosts = "inventory/addresses/{address}/hosts";
public const string Index = Network.Index + "/addresses";
public const string Hosts = Index + "/{address}/hosts";
public static string HostsHref(string? address)
{
return Hosts.Replace("{address}", address);
}
public static string HostsHref(string? address) => Hosts.Replace("{address}", address);
}
public static class Nameservers
{
public const string Index = "inventory/nameservers";
public const string Hosts = "inventory/nameservers/{nameserverAddress}/hosts";
public const string Index = Network.Index + "/nameservers";
public const string Hosts = Index + "/{nameserverAddress}/hosts";
public static string HostsHref(string? nameserverAddress)
{
return Hosts.Replace("{nameserverAddress}", nameserverAddress);
}
public static string HostsHref(string? nameserverAddress) => Hosts.Replace("{nameserverAddress}", nameserverAddress);
}
public static class Gateways
{
public const string Index = "inventory/gateways";
public const string Hosts = "inventory/gateways/{gatewayAddress}/hosts";
public const string Index = Network.Index + "/gateways";
public const string Hosts = Index + "/{gatewayAddress}/hosts";
public static string HostsHref(string? gatewayAddress)
{
return Hosts.Replace("{gatewayAddress}", gatewayAddress);
}
public static string HostsHref(string? gatewayAddress) => Hosts.Replace("{gatewayAddress}", gatewayAddress);
}
public static class Routes
{
public const string Index = "inventory/routes";
public const string Hosts = "inventory/routes/{routeAddress}/hosts";
public const string Index = Network.Index + "/routes";
public const string Hosts = Index + "/{routeAddress}/hosts";
public static string HostsHref(string? routeAddress)
{
return Hosts.Replace("{routeAddress}", routeAddress);
}
public static string HostsHref(string? routeAddress) => Hosts.Replace("{routeAddress}", routeAddress);
}
}
public static class Hardware
{
public const string Index = Inventory.Index + "/hardware";
public static class Mainboards
{
public const string Index = "inventory/mainboards";
public const string Hosts = "inventory/mainboards/{mainboardName}/hosts";
public const string Index = Hardware.Index + "/mainboards";
public const string Hosts = Index + "/{mainboardName}/hosts";
public static string HostsHref(string? mainboardName)
{
return Hosts.Replace("{mainboardName}", mainboardName);
}
public static string HostsHref(string? mainboardName) => Hosts.Replace("{mainboardName}", mainboardName);
}
public static class Processors
{
public const string Index = "inventory/processors";
public const string Hosts = "inventory/processors/{processorName}/hosts";
public const string Index = Hardware.Index + "/processors";
public const string Hosts = Index + "/{processorName}/hosts";
public static string HostsHref(string? processorName)
{
return Hosts.Replace("{processorName}", processorName);
}
public static string HostsHref(string? processorName) => Hosts.Replace("{processorName}", processorName);
}
public static class Memory
{
public const string Index = "inventory/memory";
public const string Hosts = "inventory/memory/{memoryName}/hosts";
public const string Index = Hardware.Index + "/memory";
public const string Hosts = Index + "/{memoryName}/hosts";
public static string HostsHref(string? memoryName)
{
return Hosts.Replace("{memoryName}", memoryName);
}
public static string HostsHref(string? memoryName) => Hosts.Replace("{memoryName}", memoryName);
}
public static class Drives
{
public const string Index = "inventory/drives";
public const string Hosts = "inventory/drives/{driveName}/hosts";
public const string Index = Hardware.Index + "/drives";
public const string Hosts = Index + "/{driveName}/hosts";
public static string HostsHref(string? driveName)
{
return Hosts.Replace("{driveName}", driveName);
}
public static string HostsHref(string? driveName) => Hosts.Replace("{driveName}", driveName);
}
public static class Videocards
{
public const string Index = "inventory/videocards";
public const string Hosts = "inventory/videocards/{videocardName}/hosts";
public const string Index = Hardware.Index + "/videocards";
public const string Hosts = Index + "/{videocardName}/hosts";
public static string HostsHref(string? videocardName)
{
return Hosts.Replace("{videocardName}", videocardName);
}
public static string HostsHref(string? videocardName) => Hosts.Replace("{videocardName}", videocardName);
}
}
}
public static class Communication
{
public const string Index = "communication";
public static class Chat
{
public const string Index = "communication/chat";
}
}
}