v2024/Build.ps1
# # Identity Security Cloud V2024 API # Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs. # Version: v2024 # Generated by OpenAPI Generator: https://openapi-generator.tech # function Get-FunctionsToExport { [CmdletBinding()] Param ( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)] [ValidateNotNullOrEmpty()] [Alias('FullName')] $Path ) Process { $Token = $null $ParserErr = $null $Ast = [System.Management.Automation.Language.Parser]::ParseFile( $Path, [ref]$Token, [ref]$ParserErr ) if ($ParserErr) { throw $ParserErr } else { foreach ($name in 'Begin', 'Process', 'End') { foreach ($Statement in $Ast."${name}Block".Statements) { if ( [String]::IsNullOrWhiteSpace($Statement.Name) -or $Statement.Extent.ToString() -notmatch ('function\W+{0}' -f $Statement.Name) ) { continue } $Statement.Name } } } } } $ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path $FunctionPath = "$PSScriptRoot/src/PSSailpoint.V2024/Api", "$PSScriptRoot/src/PSSailpoint.V2024/Client","$PSScriptRoot/src/PSSailpoint.V2024/Model" | ForEach-Object { $_ } $Manifest = @{ Path = "$ScriptDir\src\PSSailpoint.V2024\PSSailpoint.V2024.psd1" Author = 'OpenAPI Generator Team' CompanyName = 'SailPoint Technologies' Description = 'PSSailpoint.V2024 - the PowerShell module for Identity Security Cloud V2024 API' ModuleVersion = '1.4.7' RootModule = 'PSSailpoint.V2024.psm1' Guid = '51EC9F24-1977-40CE-A990-D0186150E0A1' # Has to be static, otherwise each new build will be considered different module PowerShellVersion = '6.2' FunctionsToExport = $FunctionPath | Get-ChildItem -Filter *.ps1 | Get-FunctionsToExport VariablesToExport = @() AliasesToExport = @() CmdletsToExport = @() } New-ModuleManifest @Manifest |