Skip to content

Commit

Permalink
Update SDK with prescript to simplify the search document schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-mairose-sp committed Nov 1, 2023
1 parent 65f759c commit 9c0611d
Show file tree
Hide file tree
Showing 20 changed files with 83 additions and 404 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
with:
node-version: "16"

- name: Run Prescript
id: prescript
run: |
node sdk-resources/prescript.js api-specs/idn
- name: Build V3 SDK
id: buildV3
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/bump_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
with:
node-version: "16"

- name: Run Prescript
id: prescript
run: |
node sdk-resources/prescript.js api-specs/idn
# Install yq for working with yaml files
- name: Set up yq
uses: frenck/action-setup-yq@v1
Expand Down
3 changes: 1 addition & 2 deletions PSSailpoint/PSSailpoint.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Sailpoint Developer Relations
#
# Generated on: 11/01/2023
# Generated on: 11/1/2023
#

@{
Expand Down Expand Up @@ -738,7 +738,6 @@ FunctionsToExport = 'New-AccessProfile', 'Remove-AccessProfile',
'Initialize-SearchArguments', 'ConvertFrom-JsonToSearchArguments',
'Initialize-SearchArgumentsOwner',
'ConvertFrom-JsonToSearchArgumentsOwner',
'ConvertFrom-JsonToSearchDocument',
'Initialize-SearchIdentityReference',
'ConvertFrom-JsonToSearchIdentityReference',
'Initialize-SearchIdentityReferenceAllOf',
Expand Down
2 changes: 1 addition & 1 deletion PSSailpoint/beta/docs/AccountUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes

- Prepare the resource
```powershell
$AccountUsage = Initialize-PSSailpointBetaAccountUsage -Date Fri Apr 21 00:00:00 UTC 2023 `
$AccountUsage = Initialize-PSSailpointBetaAccountUsage -Date Thu Apr 20 20:00:00 EDT 2023 `
-Count 10
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ $NonEmployeeRequestWithoutApprovalItem = Initialize-PSSailpointBetaNonEmployeeRe
-ApprovalStatus null `
-Comment null `
-CompletionDate 2020-03-24T11:11:41.139-05:00 `
-StartDate Tue Mar 24 00:00:00 UTC 2020 `
-EndDate Thu Mar 25 00:00:00 UTC 2021 `
-StartDate Mon Mar 23 20:00:00 EDT 2020 `
-EndDate Wed Mar 24 20:00:00 EDT 2021 `
-Modified 2020-03-24T11:11:41.139-05:00 `
-Created 2020-03-24T11:11:41.139-05:00
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ $NonEmployeeRequestWithoutApprovalItemAllOf = Initialize-PSSailpointBetaNonEmplo
-ApprovalStatus null `
-Comment null `
-CompletionDate 2020-03-24T11:11:41.139-05:00 `
-StartDate Tue Mar 24 00:00:00 UTC 2020 `
-EndDate Thu Mar 25 00:00:00 UTC 2021 `
-StartDate Mon Mar 23 20:00:00 EDT 2020 `
-EndDate Wed Mar 24 20:00:00 EDT 2021 `
-Modified 2020-03-24T11:11:41.139-05:00 `
-Created 2020-03-24T11:11:41.139-05:00
```
Expand Down
2 changes: 1 addition & 1 deletion PSSailpoint/beta/docs/SourceUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes

- Prepare the resource
```powershell
$SourceUsage = Initialize-PSSailpointBetaSourceUsage -Date Fri Apr 21 00:00:00 UTC 2023 `
$SourceUsage = Initialize-PSSailpointBetaSourceUsage -Date Thu Apr 20 20:00:00 EDT 2023 `
-Count 10.45
```

Expand Down
3 changes: 0 additions & 3 deletions PSSailpoint/v3/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ docs/SearchAggregationSpecificationAllOf.md
docs/SearchApi.md
docs/SearchArguments.md
docs/SearchArgumentsOwner.md
docs/SearchDocument.md
docs/SearchFilterType.md
docs/SearchIdentityReference.md
docs/SearchIdentityReferenceAllOf.md
Expand Down Expand Up @@ -952,7 +951,6 @@ src/PSSailpoint/Model/SearchAggregationSpecification.ps1
src/PSSailpoint/Model/SearchAggregationSpecificationAllOf.ps1
src/PSSailpoint/Model/SearchArguments.ps1
src/PSSailpoint/Model/SearchArgumentsOwner.ps1
src/PSSailpoint/Model/SearchDocument.ps1
src/PSSailpoint/Model/SearchFilterType.ps1
src/PSSailpoint/Model/SearchIdentityReference.ps1
src/PSSailpoint/Model/SearchIdentityReferenceAllOf.ps1
Expand Down Expand Up @@ -1473,7 +1471,6 @@ tests/Model/SearchAggregationSpecification.Tests.ps1
tests/Model/SearchAggregationSpecificationAllOf.Tests.ps1
tests/Model/SearchArguments.Tests.ps1
tests/Model/SearchArgumentsOwner.Tests.ps1
tests/Model/SearchDocument.Tests.ps1
tests/Model/SearchFilterType.Tests.ps1
tests/Model/SearchIdentityReference.Tests.ps1
tests/Model/SearchIdentityReferenceAllOf.Tests.ps1
Expand Down
1 change: 0 additions & 1 deletion PSSailpoint/v3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,6 @@ Class | Method | HTTP request | Description
- [PSSailpoint/Model.SearchAggregationSpecificationAllOf](docs/SearchAggregationSpecificationAllOf.md)
- [PSSailpoint/Model.SearchArguments](docs/SearchArguments.md)
- [PSSailpoint/Model.SearchArgumentsOwner](docs/SearchArgumentsOwner.md)
- [PSSailpoint/Model.SearchDocument](docs/SearchDocument.md)
- [PSSailpoint/Model.SearchFilterType](docs/SearchFilterType.md)
- [PSSailpoint/Model.SearchIdentityReference](docs/SearchIdentityReference.md)
- [PSSailpoint/Model.SearchIdentityReferenceAllOf](docs/SearchIdentityReferenceAllOf.md)
Expand Down
2 changes: 1 addition & 1 deletion PSSailpoint/v3/docs/AccountUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes

- Prepare the resource
```powershell
$AccountUsage = Initialize-PSSailpointAccountUsage -Date Fri Apr 21 00:00:00 UTC 2023 `
$AccountUsage = Initialize-PSSailpointAccountUsage -Date Thu Apr 20 20:00:00 EDT 2023 `
-Count 10
```

Expand Down
2 changes: 1 addition & 1 deletion PSSailpoint/v3/docs/AggregationResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Aggregations** | [**SystemCollectionsHashtable**](.md) | The document containing the results of the aggregation. This document is controlled by Elasticsearch and depends on the type of aggregation query that is run. See Elasticsearch [Aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/5.2/search-aggregations.html) documentation for information. | [optional]
**Hits** | [**SearchDocument[]**](SearchDocument.md) | The results of the aggregation search query. | [optional]
**Hits** | [**SystemCollectionsHashtable[]**](SystemCollectionsHashtable.md) | The results of the aggregation search query. | [optional]

## Examples

Expand Down
4 changes: 2 additions & 2 deletions PSSailpoint/v3/docs/NonEmployeeRequestWithoutApprovalItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ $NonEmployeeRequestWithoutApprovalItem = Initialize-PSSailpointNonEmployeeReques
-ApprovalStatus null `
-Comment approved `
-CompletionDate 2020-03-24T11:11:41.139-05:00 `
-StartDate Tue Mar 24 00:00:00 UTC 2020 `
-EndDate Thu Mar 25 00:00:00 UTC 2021 `
-StartDate Mon Mar 23 20:00:00 EDT 2020 `
-EndDate Wed Mar 24 20:00:00 EDT 2021 `
-Modified 2020-03-24T11:11:41.139-05:00 `
-Created 2020-03-24T11:11:41.139-05:00
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ $NonEmployeeRequestWithoutApprovalItemAllOf = Initialize-PSSailpointNonEmployeeR
-ApprovalStatus null `
-Comment approved `
-CompletionDate 2020-03-24T11:11:41.139-05:00 `
-StartDate Tue Mar 24 00:00:00 UTC 2020 `
-EndDate Thu Mar 25 00:00:00 UTC 2021 `
-StartDate Mon Mar 23 20:00:00 EDT 2020 `
-EndDate Wed Mar 24 20:00:00 EDT 2021 `
-Modified 2020-03-24T11:11:41.139-05:00 `
-Created 2020-03-24T11:11:41.139-05:00
```
Expand Down
8 changes: 4 additions & 4 deletions PSSailpoint/v3/docs/SearchApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void (empty response body)

<a name="Search-Get"></a>
# **Search-Get**
> SearchDocument Search-Get<br>
> SystemCollectionsHashtable Search-Get<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Index] <String><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Id] <String><br>
Expand Down Expand Up @@ -208,7 +208,7 @@ Name | Type | Description | Notes

### Return type

[**SearchDocument**](SearchDocument.md) (PSCustomObject)
[**SystemCollectionsHashtable**](SystemCollectionsHashtable.md) (PSCustomObject)

### Authorization

Expand All @@ -223,7 +223,7 @@ Name | Type | Description | Notes

<a name="Search-Post"></a>
# **Search-Post**
> SearchDocument[] Search-Post<br>
> SystemCollectionsHashtable[] Search-Post<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Search] <PSCustomObject><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Offset] <System.Nullable[Int32]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Limit] <System.Nullable[Int32]><br>
Expand Down Expand Up @@ -291,7 +291,7 @@ Name | Type | Description | Notes

### Return type

[**SearchDocument[]**](SearchDocument.md) (PSCustomObject)
[**SystemCollectionsHashtable[]**](SystemCollectionsHashtable.md) (PSCustomObject)

### Authorization

Expand Down
179 changes: 0 additions & 179 deletions PSSailpoint/v3/docs/SearchDocument.md

This file was deleted.

2 changes: 1 addition & 1 deletion PSSailpoint/v3/docs/SourceUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes

- Prepare the resource
```powershell
$SourceUsage = Initialize-PSSailpointSourceUsage -Date Fri Apr 21 00:00:00 UTC 2023 `
$SourceUsage = Initialize-PSSailpointSourceUsage -Date Thu Apr 20 20:00:00 EDT 2023 `
-Count 10.45
```

Expand Down
Loading

0 comments on commit 9c0611d

Please sign in to comment.