Skip to content

Commit

Permalink
Removed V2
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-hagar-sp committed Feb 9, 2024
1 parent a4f9754 commit a4d976b
Show file tree
Hide file tree
Showing 71 changed files with 4 additions and 7,104 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,8 @@ jobs:
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.beta.yaml -g powershell -o PSSailpoint/beta --global-property skipFormModel=false --config sdk-resources/beta-config.yaml
node sdk-resources/postscript.js ./PSSailpoint/beta
- name: Build V2 SDK
id: buildV2
if: steps.buildBeta.outcome == 'success'
run: |
rm -rf ./PSSailpoint/v2
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v2.yaml -g powershell -o PSSailpoint/v2 --global-property skipFormModel=false --config sdk-resources/v2-config.yaml
- name: After SDK Build
if: steps.buildV2.outcome == 'success'
if: steps.buildBeta.outcome == 'success'
shell: pwsh
run: |
$DebugPreference="Continue"
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/bump_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
- name: Update config files with new version
id: updateVersion
run: |
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/v2-config.yaml
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/beta-config.yaml
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/v3-config.yaml
Expand Down Expand Up @@ -91,16 +90,9 @@ jobs:
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.beta.yaml -g powershell -o PSSailpoint/beta --global-property skipFormModel=false --config sdk-resources/beta-config.yaml
node sdk-resources/postscript.js ./PSSailpoint/beta
- name: Build V2 SDK
id: buildV2
if: steps.buildBeta.outcome == 'success'
run: |
rm -rf ./PSSailpoint/v2
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v2.yaml -g powershell -o PSSailpoint/v2 --global-property skipFormModel=false --config sdk-resources/v2-config.yaml
- name: After SDK Build
id: buildSDK
if: steps.buildV2.outcome == 'success'
if: steps.buildBeta.outcome == 'success'
shell: pwsh
run: |
$DebugPreference="Continue"
Expand Down
2 changes: 1 addition & 1 deletion PSSailpoint/Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function Get-FunctionsToExport {
}

$ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path
$FunctionPath = "$PSScriptRoot/v3/src/PSSailpoint/Api", "$PSScriptRoot/v3/src/PSSailpoint/Model", "$PSScriptRoot/v3/src/PSSailpoint/Client", "$PSScriptRoot/beta/src/PSSailpointBeta/Api", "$PSScriptRoot/beta/src/PSSailpointBeta/Model", "$PSScriptRoot/beta/src/PSSailpointBeta/Client", "$PSScriptRoot/v2/src/PSSailpointV2/Api", "$PSScriptRoot/v2/src/PSSailpointV2/Model", "$PSScriptRoot/v2/src/PSSailpointV2/Client", "$PSScriptRoot" | ForEach-Object { $_ }
$FunctionPath = "$PSScriptRoot/v3/src/PSSailpoint/Api", "$PSScriptRoot/v3/src/PSSailpoint/Model", "$PSScriptRoot/v3/src/PSSailpoint/Client", "$PSScriptRoot/beta/src/PSSailpointBeta/Api", "$PSScriptRoot/beta/src/PSSailpointBeta/Model", "$PSScriptRoot/beta/src/PSSailpointBeta/Client", "$PSScriptRoot" | ForEach-Object { $_ }

$Manifest = @{
Path = "$ScriptDir\PSSailpoint.psd1"
Expand Down
9 changes: 1 addition & 8 deletions PSSailpoint/PSSailpoint.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,7 @@ $BetaClient = @( Get-ChildItem -Path "$PSScriptRoot\beta\src\PSSailpointBeta\Cli
$BetaModel = @( Get-ChildItem -Path "$PSScriptRoot\beta\src\PSSailpointBeta\Model\*.ps1" )
$BetaPrivate = @( Get-ChildItem -Path "$PSScriptRoot\beta\src\PSSailpointBeta\Private\*.ps1" )

$V2API = @( Get-ChildItem -Path "$PSScriptRoot\v2\src\PSSailpointV2\Api\*.ps1" )
$V2Client = @( Get-ChildItem -Path "$PSScriptRoot\v2\src\PSSailpointV2\Client\*.ps1" )
$V2Model = @( Get-ChildItem -Path "$PSScriptRoot\v2\src\PSSailpointV2\Model\*.ps1" )
$V2Private = @( Get-ChildItem -Path "$PSScriptRoot\v2\src\PSSailpointV2\Private\*.ps1" )



Foreach ($import in @($V3API + $V3Client + $V3Model + $V3Private + $BetaAPI + $BetaClient + $BetaModel + $BetaPrivate + $V2API + $V2Client + $V2Model + $V2Private)) {
Foreach ($import in @($V3API + $V3Client + $V3Model + $V3Private + $BetaAPI + $BetaClient + $BetaModel + $BetaPrivate)) {
Try {
. $import.fullname
}
Expand Down
8 changes: 0 additions & 8 deletions PSSailpoint/tests/Validation.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,3 @@ Describe 'Beta' {

}

Describe 'V2' {
It 'Returns results for Get-Workgroups' {
$Response = Get-V2Workgroups -WithHttpInfo

$Response.Response | Should -Not -BeNullOrEmpty
$Response.StatusCode | Should -Be 200
}
}
23 changes: 0 additions & 23 deletions PSSailpoint/v2/.openapi-generator-ignore

This file was deleted.

63 changes: 0 additions & 63 deletions PSSailpoint/v2/.openapi-generator/FILES

This file was deleted.

1 change: 0 additions & 1 deletion PSSailpoint/v2/.openapi-generator/VERSION

This file was deleted.

72 changes: 0 additions & 72 deletions PSSailpoint/v2/Build.ps1

This file was deleted.

112 changes: 0 additions & 112 deletions PSSailpoint/v2/README.md

This file was deleted.

40 changes: 0 additions & 40 deletions PSSailpoint/v2/appveyor.yml

This file was deleted.

Loading

0 comments on commit a4d976b

Please sign in to comment.