This commit is contained in:
2022-12-05 15:29:03 +03:00
parent affbd18de2
commit c4b15d7387
12 changed files with 33 additions and 2 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
*.dll *.dll
bin bin
obj obj
.code-workspace

View File

@@ -0,0 +1,14 @@
namespace PS.IPAM;
using System;
[Serializable]
public enum controllers {
user,
vlan,
subnets,
addresses,
sections,
vrf,
l2domains,
tools
}

9
classlib/enum/methods.cs Normal file
View File

@@ -0,0 +1,9 @@
namespace PS.IPAM;
using System;
public enum methods {
GET,
POST,
PATCH,
DELETE
}

View File

@@ -0,0 +1,7 @@
namespace PS.IPAM;
using System;
[Serializable]
public enum subcontrollers {
nameservers
}

View File

@@ -10,7 +10,7 @@ function Invoke-Request {
[string] [string]
$Controller, $Controller,
[parameter(Mandatory=$false)] [parameter(Mandatory=$false)]
[ValidateSet("address","tag","subnet")] [ValidateSet("address","tag","subnet","vlan","vrf","section")]
[string] [string]
$Type, $Type,
[parameter(Mandatory=$false)] [parameter(Mandatory=$false)]