-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRESONEServiceStore.psm1
More file actions
99 lines (87 loc) · 3.61 KB
/
RESONEServiceStore.psm1
File metadata and controls
99 lines (87 loc) · 3.61 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
data localizedData {
# Localized messages; culture="en-US"
ConvertFrom-StringData @'
CannotFindFilePathError = Cannot find path '{0}' because it does not exist.
FileAlreadyExistsError = File or directory '{0}' already exists.
NoSessionEstablishedError = No RES ONE Service Store session established or session has expired.
NoDbSessionEstablishedError = No RES ONE Service Store database session established or session has expired.
NoApiSessionEstablishedError = No RES ONE Service Store API session established or session has expired.
StartDateAfterEndDateError = Start date cannot be after the end date.
InputObjectTypeMismatchError = InputObject is not a '{0}' type.
UnsupportedDbConnectionTypeError = Unsupported database connection type '{0}'.
UnsupportedOperationWarning = The '{0}' cmdlet is an unsupported operation. USE WITH EXTREME CAUTION.
DefaultHttpsConnectionWarning = Defaulting to HTTPS connection for Identity Director connections.
ShouldProcessImport = Import
ShouldProcessSet = Set
ShouldProcessUpdate = Update
ShouldProcessEnable = Enable
ShouldProcessDisable = Disable
ShouldProcessDelete = Delete
ShouldProcessNew = New
NoMatchingWorkflowActionsFound = No matching workflow actions found on service '{0}'.
InvokingSQLQuery = Invoking SQL query "{0}".
'@
}
$moduleRoot = Split-Path -Path $MyInvocation.MyCommand.Path -Parent;
$moduleSrcPath = Join-Path -Path $moduleRoot -ChildPath 'Src';
Get-ChildItem -Path $moduleSrcPath -Include '*.ps1' -Recurse |
ForEach-Object {
Write-Verbose -Message ('Importing library\source file ''{0}''.' -f $_.FullName);
. $_.FullName;
}
$script:customProperties = @{
## Custom RES ONE Service Store property map
'VirtualEngine.ROSS.DataSource' = @{
Type = @{
DataSourceColumn = 'SpecificFlags';
ValueMap = @{
1 = 'CSV';
2 = 'ActiveDirectory';
3 = 'ODBC';
}
}
}
'VirtualEngine.ROSS.DataConnection' = @{
Type = @{
DataSourceColumn = 'Type';
ValueMap = @{
1 = 'People';
2 = 'Organization';
3 = 'Classification';
4 = 'Attribute';
}
}
Errors = @{
DataSourceColumn = 'SyncErrors';
}
LastSyncDate = @{
DataSourceColumn = 'SyncEndDate';
}
}
'VirtualEngine.ROSS.Organization' = @{
OrganizationId = @{
DataSourceColumn = 'Id'; ## for pipeline support
}
}
'VirtualEngine.ROSS.Service' = @{
ServiceId = @{
DataSourceColumn = 'Id'; ## for pipeline support
}
}
'VirtualEngine.ROSS.Transaction' = @{
Delivery = @{
DataSourceColumn = 'Direction';
ValueMap = @{
Provision = 'Deliver';
Deprovision = 'Return';
}
}
}
'VirtualEngine.ROSS.Person' = @{
PersonId = @{
DataSourceColumn = 'Id'; ## for pipeline support
}
}
} #end customProperties
## Import the \DSCResources\ROSSCommon common library functions
Import-Module (Join-Path -Path $moduleRoot -ChildPath '\DSCResources\ROSSCommon') -Force -Verbose:$false;