Added assembly name and root namespace to project file; updated session and vlan classes with new properties; modified module manifest to reference DLL and updated exported cmdlets; corrected property name in address class.
This commit is contained in:
@@ -61,7 +61,7 @@ public class Address {
|
||||
this.Location = location;
|
||||
this.Port = port;
|
||||
this.Note = note;
|
||||
this.EditDate = lastSeen;
|
||||
this.LastSeen = lastSeen;
|
||||
this.ExcludePing = excludePing;
|
||||
this.PTRignore = PTRignore;
|
||||
this.PTR = PTR;
|
||||
|
||||
@@ -1,21 +1,22 @@
|
||||
namespace PS.IPAM;
|
||||
using System;
|
||||
using System.Management.Automation;
|
||||
|
||||
[Serializable]
|
||||
public class Session {
|
||||
public AuthType AuthType { get; }
|
||||
public string Token { get; }
|
||||
public string Token { get; set; }
|
||||
public string AppID { get; }
|
||||
public string URL { get; }
|
||||
public DateTime? Expires { get; }
|
||||
public Object? Credentials { get; }
|
||||
public DateTime? Expires { get; set; }
|
||||
public object? Credentials { get; }
|
||||
public Session(
|
||||
AuthType authType,
|
||||
string token,
|
||||
string appId,
|
||||
string url,
|
||||
DateTime? expires,
|
||||
Object? credentials
|
||||
object? credentials
|
||||
) {
|
||||
AuthType = authType;
|
||||
Token = token;
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Dynamic;
|
||||
[Serializable]
|
||||
public class Vlan : DynamicObject {
|
||||
public int Id { get; }
|
||||
public int VlanId { get; }
|
||||
public int DomainId { get; }
|
||||
public string Name { get; }
|
||||
public int Number { get; }
|
||||
@@ -23,6 +24,7 @@ public class Vlan : DynamicObject {
|
||||
Object? custom_fields
|
||||
) {
|
||||
this.Id = vlanId;
|
||||
this.VlanId = vlanId;
|
||||
this.DomainId = domainId;
|
||||
this.Name = name;
|
||||
this.Number = number;
|
||||
|
||||
Reference in New Issue
Block a user