Skip to content

Commit

Permalink
Automated build 'Automated commit 'Merge pull request #1471 from sail…
Browse files Browse the repository at this point in the history
…point/devrel-1315

Fix spec mismatch issue between url and path parameterr under v3 camp…' by github action: 6695391116' powershell sdk: 6695396787
  • Loading branch information
tyler-mairose-sp committed Oct 30, 2023
1 parent dcd2330 commit 0b35c92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions PSSailpoint/v3/docs/CertificationCampaignsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ Name | Type | Description | Notes
<a name="Get-CampaignReports"></a>
# **Get-CampaignReports**
> CampaignReport[] Get-CampaignReports<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-CampaignId] <String><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Id] <String><br>
Get Campaign Reports

Expand All @@ -436,11 +436,11 @@ $Configuration.AccessToken = "YOUR_ACCESS_TOKEN"
# Configure OAuth2 access token for authorization: UserContextAuth
$Configuration.AccessToken = "YOUR_ACCESS_TOKEN"
$CampaignId = "2c91808571bcfcf80171c23e4b4221fc" # String | The ID of the campaign for which reports are being fetched.
$Id = "2c91808571bcfcf80171c23e4b4221fc" # String | The ID of the campaign for which reports are being fetched.
# Get Campaign Reports
try {
$Result = Get-CampaignReports -CampaignId $CampaignId
$Result = Get-CampaignReports -Id $Id
} catch {
Write-Host ("Exception occurred when calling Get-CampaignReports: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
Expand All @@ -451,7 +451,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**CampaignId** | **String**| The ID of the campaign for which reports are being fetched. |
**Id** | **String**| The ID of the campaign for which reports are being fetched. |

### Return type

Expand Down
10 changes: 5 additions & 5 deletions PSSailpoint/v3/src/PSSailpoint/Api/CertificationCampaignsApi.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ Get Campaign Reports
Fetches all reports for a certification campaign by campaign ID. Requires roles of CERT_ADMIN, DASHBOARD, ORG_ADMIN and REPORT_ADMIN
.PARAMETER CampaignId
.PARAMETER Id
The ID of the campaign for which reports are being fetched.
.PARAMETER WithHttpInfo
Expand All @@ -669,7 +669,7 @@ function Get-CampaignReports {
Param (
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
[String]
${CampaignId},
${Id},
[Switch]
$WithHttpInfo
)
Expand All @@ -691,10 +691,10 @@ function Get-CampaignReports {
$LocalVarAccepts = @('application/json')

$LocalVarUri = '/campaigns/{id}/reports'
if (!$CampaignId) {
throw "Error! The required parameter `CampaignId` missing when calling getCampaignReports."
if (!$Id) {
throw "Error! The required parameter `Id` missing when calling getCampaignReports."
}
$LocalVarUri = $LocalVarUri.replace('{campaignId}', [System.Web.HTTPUtility]::UrlEncode($CampaignId))
$LocalVarUri = $LocalVarUri.replace('{id}', [System.Web.HTTPUtility]::UrlEncode($Id))



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Describe -tag 'PSSailpoint' -name 'CertificationCampaignsApi' {

Context 'Get-CampaignReports' {
It 'Test Get-CampaignReports' {
#$TestResult = Get-CampaignReports -CampaignId "TEST_VALUE"
#$TestResult = Get-CampaignReports -Id "TEST_VALUE"
#$TestResult | Should -BeOfType TODO
#$TestResult.property | Should -Be 0
}
Expand Down

0 comments on commit 0b35c92

Please sign in to comment.