machine-identities-lifecycle-actions/Build.ps1
|
# # SailPoint Identity Security API - Machine Identity Lifecycle Actions # Use these APIs to submit, list, retrieve, and cancel machine identity lifecycle actions (currently activate and deactivate for Agent machine identities only). 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: v1 # 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.MachineIdentitiesLifecycleActions/Api", "$PSScriptRoot/src/PSSailpoint.MachineIdentitiesLifecycleActions/Client","$PSScriptRoot/src/PSSailpoint.MachineIdentitiesLifecycleActions/Model" | ForEach-Object { $_ } $Manifest = @{ Path = "$ScriptDir\src\PSSailpoint.MachineIdentitiesLifecycleActions\PSSailpoint.MachineIdentitiesLifecycleActions.psd1" Author = 'OpenAPI Generator Team' CompanyName = 'SailPoint Technologies' Description = 'PSSailpoint.MachineIdentitiesLifecycleActions - the PowerShell module for SailPoint Identity Security API - Machine Identity Lifecycle Actions' ModuleVersion = '2.1.75' RootModule = 'PSSailpoint.MachineIdentitiesLifecycleActions.psm1' Guid = 'B8A6C294-E973-0ACA-BF99-3053C748C362' # 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 |