Skip to content

Commit

Permalink
Merge pull request #58 from sailpoint-oss/CC-Decom
Browse files Browse the repository at this point in the history
CC Decom
  • Loading branch information
Luke Hagar authored Feb 9, 2024
2 parents 030c285 + d52d57f commit 8a3f63e
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 5,816 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/build-go-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
with:
node-version: "16"


- name: Run Prescript
id: prescript
run: |
Expand All @@ -62,26 +61,8 @@ jobs:
java -jar openapi-generator-cli.jar generate -i ../idn/sailpoint-api.beta.yaml -g go -o api_beta --global-property skipFormModel=false --config sdk-resources/beta-config.yaml -p enumClassPrefix=true --git-repo-id golang-sdk/v2 --git-user-id sailpoint-oss
node sdk-resources/postscript.js ./api_beta
- name: Build V2 SDK
id: buildV2
if: steps.buildBeta.outcome == 'success'
run: |
cd golang-sdk
rm -rf ./api_v2
java -jar openapi-generator-cli.jar generate -i ../idn/sailpoint-api.v2.yaml -g go -o api_v2 --global-property skipFormModel=false --config sdk-resources/v2-config.yaml -p enumClassPrefix=true --git-repo-id golang-sdk/v2 --git-user-id sailpoint-oss
node sdk-resources/postscript.js ./api_v2
- name: Build CC SDK
id: buildCC
if: steps.buildV2.outcome == 'success'
run: |
cd golang-sdk
rm -rf ./api_cc
java -jar openapi-generator-cli.jar generate -i ../idn/sailpoint-api.cc.yaml -g go -o api_cc --global-property skipFormModel=false --config sdk-resources/cc-config.yaml -p enumClassPrefix=true --git-repo-id golang-sdk/v2 --git-user-id sailpoint-oss
node sdk-resources/postscript.js ./api_cc
- name: After SDK Build
if: steps.buildCC.outcome == 'success'
if: steps.buildBeta.outcome == 'success'
run: |
cd golang-sdk/
go get -d ./...
Expand All @@ -101,4 +82,4 @@ jobs:
git remote -v
git push
git push
23 changes: 3 additions & 20 deletions .github/workflows/build-powershell-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,33 +55,16 @@ jobs:
java -jar openapi-generator-cli.jar generate -i ../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: |
cd powershell-sdk
rm -rf ./PSSailpoint/v2
java -jar openapi-generator-cli.jar generate -i ../idn/sailpoint-api.v2.yaml -g powershell -o PSSailpoint/v2 --global-property skipFormModel=false --config sdk-resources/v2-config.yaml
- name: Build CC SDK
id: buildCC
if: steps.buildV2.outcome == 'success'
run: |
cd powershell-sdk
rm -rf ./PSSailpoint/cc
java -jar openapi-generator-cli.jar generate -i ../idn/sailpoint-api.cc.yaml -g powershell -o PSSailpoint/cc --global-property skipFormModel=false --config sdk-resources/cc-config.yaml
node sdk-resources/postscript.js ./PSSailpoint/cc
- name: After SDK Generation
id: buildSDK
if: steps.buildCC.outcome == 'success'
if: steps.buildBeta.outcome == 'success'
shell: pwsh
run: |
cd powershell-sdk
./PSSailpoint/Build.ps1
$DebugPreference="Continue"
Import-Module -Name '.\PSSailpoint' -Verbose
- name: After SDK Build
if: steps.buildSDK.outcome == 'success'
run: |
Expand All @@ -99,4 +82,4 @@ jobs:
git remote -v
git push
git push
24 changes: 4 additions & 20 deletions .github/workflows/build-python-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: "3.x"

- name: Run Prescript
id: prescript
run: |
Expand All @@ -65,24 +65,8 @@ jobs:
java -jar openapi-generator-cli-7.0.1.jar generate -i ../idn/sailpoint-api.beta.yaml -g python -o sailpoint --global-property skipFormModel=false --config sdk-resources/beta-config.yaml --enable-post-process-file
node sdk-resources/postscript.js ./sailpoint/beta
- name: Build V2 SDK
id: buildV2
if: steps.buildBeta.outcome == 'success'
run: |
cd python-sdk
rm -rf ./sailpoint/v2
java -jar openapi-generator-cli-7.0.1.jar generate -i ../idn/sailpoint-api.v2.yaml -g python -o sailpoint --global-property skipFormModel=false --config sdk-resources/v2-config.yaml --enable-post-process-file
- name: Build CC SDK
id: buildCC
if: steps.buildV2.outcome == 'success'
run: |
cd python-sdk
rm -rf ./sailpoint/cc
java -jar openapi-generator-cli-7.0.1.jar generate -i ../idn/sailpoint-api.cc.yaml -g python -o sailpoint/ --global-property skipFormModel=false --config sdk-resources/cc-config.yaml --enable-post-process-file
- name: After SDK Build
if: steps.buildCC.outcome == 'success'
if: steps.buildBeta.outcome == 'success'
run: |
cd python-sdk/
pip install -r requirements.txt
Expand All @@ -102,4 +86,4 @@ jobs:
git remote -v
git push
git push
22 changes: 3 additions & 19 deletions .github/workflows/build-typescript-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "16"

- name: Build V3 SDK
id: buildV3
run: |
Expand All @@ -52,31 +52,15 @@ jobs:
rm -rf sdk-output/beta
java -jar openapi-generator-cli.jar generate -i ../idn/sailpoint-api.beta.yaml -g typescript-axios -o sdk-output/beta --global-property skipFormModel=false --config sdk-resources/beta-config.yaml --api-name-suffix BetaApi --model-name-suffix Beta
- name: Build V2 SDK
id: buildV2
if: steps.buildBeta.outcome == 'success'
run: |
cd sdk-ts
rm -rf sdk-output/v2
java -jar openapi-generator-cli.jar generate -i ../idn/sailpoint-api.v2.yaml -g typescript-axios -o sdk-output/v2 --global-property skipFormModel=false --config sdk-resources/v2-config.yaml --api-name-suffix V2Api --model-name-suffix V2
- name: Build CC SDK
id: buildCC
if: steps.buildV2.outcome == 'success'
run: |
cd sdk-ts
rm -rf sdk-output/cc
java -jar openapi-generator-cli.jar generate -i ../idn/sailpoint-api.cc.yaml -g typescript-axios -o sdk-output/cc --global-property skipFormModel=false --config sdk-resources/cc-config.yaml --api-name-suffix CCApi --model-name-suffix CC
- name: Run npm install and build Typescript SDK
id: buildSDK
if: steps.buildCC.outcome == 'success'
if: steps.buildBeta.outcome == 'success'
run: |
cd sdk-ts/sdk-output
npm install
npm run build
npm run test
- name: After SDK Build
if: steps.buildSDK.outcome == 'success'
run: |
Expand Down
Loading

0 comments on commit 8a3f63e

Please sign in to comment.