Skip to content

Glenr2d2 patch 1 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions ConfigMgrWebService/CMCollectionAdvanced.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace ConfigMgrWebService
{

public class CMCollectionVariables
{
public string Name { get; set; }
public string CollectionID { get; set; }
public List<CMVariables> Variable { get; set; }
}

public class CMCollectionAdvanced
{
public string Name { get; set; }
public string CollectionID { get; set; }
public List<CMVariables> Variable { get; set; }
public System.Collections.ArrayList AdhesionRules { get; set; }
}

public class CMVariablesSettings
{
public string CollectionID { get; set; }
public List<CMVariables> Variable { get; set; }
}

public class CMVariables
{
public string Name { get; set; }
public string Value { get; set; }
}

[DataContract(Name = "QueryRule")]
public class CMQueryRule
{
[DataMember]
public string RuleName { get; set; }

[DataMember]
public string RuleType { get; set; }

[DataMember]
public string QueryID { get; set; }

[DataMember]
public string QueryExpression { get; set; }

}

[DataContract(Name = "DirectRule")]
public class CMDirectRule
{
[DataMember]
public string RuleName { get; set; }

[DataMember]
public string RuleType { get; set; }

[DataMember]
public string ResourceClassName { get; set; }

[DataMember]
public string ResourceID { get; set; }
}

[DataContract(Name = "IncludeRule")]
public class CMIncludeRule
{
[DataMember]
public string RuleName { get; set; }

[DataMember]
public string RuleType { get; set; }

[DataMember]
public string IncludeCollectionID { get; set; }
}

[DataContract(Name = "ExcludeRule")]
public class CMExcludeRule
{
[DataMember]
public string RuleName { get; set; }

[DataMember]
public string RuleType { get; set; }

[DataMember]
public string ExcludeCollectionID { get; set; }
}
}
22 changes: 22 additions & 0 deletions ConfigMgrWebService/CMDevice.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System.Collections.Generic;

namespace ConfigMgrWebService
{
public class CMDevice
{
public string Name { get; set; }
public List<CMDeviceVariable> Variable { get; set; }
}

public class CMDeviceByID
{
public string ResourceID { get; set; }
public List<CMDeviceVariable> Variable { get; set; }
}

public class CMDeviceVariable
{
public string Name { get; set; }
public string Value { get; set; }
}
}
40 changes: 40 additions & 0 deletions ConfigMgrWebService/CMNode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System.Collections.Generic;

namespace ConfigMgrWebService
{
public enum CMNodeObjectType
{
SMS_Package = 2,
SMS_Advertisement = 3,
SMS_Query = 7,
SMS_Report = 8,
SMS_MeteredProductRule = 9,
SMS_ConfigurationItem = 11,
SMS_OperatingSystemInstallPackage = 14,
SMS_StateMigration = 17,
SMS_ImagePackage = 18,
SMS_BootImagePackage = 19,
SMS_TaskSequencePackage = 20,
SMS_DeviceSettingPackage = 21,
SMS_DriverPackage = 23,
SMS_Driver = 25,
SMS_SoftwareUpdate = 1011,
SMS_ConfigurationItem_Baseline = 2011,
SMS_Collection_Device = 5000,
SMS_Collection_User = 5001,
SMS_ApplicationLatest = 6000
}

public class CMNode
{
public string Name { get; set; }
public string ContainerNodeID { get; set; }
public List<string> MemberID { get; set; }
public List<string> MemberGuid { get; set; }
public List<string> InstanceKey { get; set; }
public string ParentContainerNodeID { get; set; }
public string FolderGuid { get; set; }
public string Path { get; set; }
}

}
Loading