-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKeepitTools.psm1
More file actions
29 lines (25 loc) · 1.1 KB
/
Copy pathKeepitTools.psm1
File metadata and controls
29 lines (25 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
#Requires -Version 7.0
<#
.SYNOPSIS
Keepit Tools PowerShell Module
.DESCRIPTION
Provides cmdlets for using the Keepit API from PowerShell scripts, including cmdlets to
connect and disconnect from the service, get the status of backup jobs, start backup jobs,
and get information about existing Microsoft 365 connectors.
.NOTES
Author: Keepit
#>
# KeepitTools.psm1 - Module loader
# Dot-source private helpers first (order matters: state before helpers)
. "$PSScriptRoot/Private/ConnectionState.ps1"
. "$PSScriptRoot/Private/Helpers.ps1"
# Dot-source public cmdlets (order does not matter)
foreach ($script in (Get-ChildItem -Path "$PSScriptRoot/Public" -Filter '*.ps1' -ErrorAction Stop)) {
. $script.FullName
}
# Aliases for PowerShell naming convention compliance (A15, A16)
# Singular-noun aliases for plural-noun cmdlets
New-Alias -Name 'Get-KeepitJob' -Value 'Get-KeepitJobs' -Scope Script
New-Alias -Name 'Get-KeepitRole' -Value 'Get-KeepitRoles' -Scope Script
# Approved-verb alias for Search-KeepitSnapshot
New-Alias -Name 'Find-KeepitSnapshot' -Value 'Search-KeepitSnapshot' -Scope Script