-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRESAM-Init.ps1
More file actions
73 lines (65 loc) · 1.1 KB
/
RESAM-Init.ps1
File metadata and controls
73 lines (65 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# RESAM module - enumerations
$jobStatus = @"
using System;
namespace RESAM
{
[FlagsAttribute]
public enum JobStatus {
Unknown = -2,
Disabled = -1,
Scheduled = 0,
Active = 1,
Aborting = 2,
Aborted = 3,
Completed = 4,
Failed = 5,
FailedHalted = 6,
Canceled = 7,
CompletedWithErrors = 8,
Skipped = 9,
TimedOut = 11
}
}
"@
Add-Type -TypeDefinition $jobStatus -Language CSharp
$jobWhatType = @"
using System;
namespace RESAM
{
[FlagsAttribute]
public enum JobWhatType {
Module = 0,
Project = 1,
Runbook = 2
}
}
"@
Add-Type -TypeDefinition $jobWhatType -Language CSharp
$jobWhoType = @"
using System;
namespace RESAM
{
[FlagsAttribute]
public enum JobWhoType {
Agent = 0,
Team = 1
}
}
"@
Add-Type -TypeDefinition $jobWhoType -Language CSharp
$jobParameterType = @"
using System;
namespace RESAM
{
[FlagsAttribute]
public enum JobParameterType {
Text = 0,
List = 1,
Credentials = 2,
MultiSelectList = 3,
MultiLineText = 4,
Password = 5
}
}
"@
Add-Type -TypeDefinition $jobParameterType -Language CSharp