diff --git a/PSSailpoint/PSSailpoint.psd1 b/PSSailpoint/PSSailpoint.psd1 index 3b639bfac..7ce0c128e 100644 --- a/PSSailpoint/PSSailpoint.psd1 +++ b/PSSailpoint/PSSailpoint.psd1 @@ -3,7 +3,7 @@ # # Generated by: Sailpoint Developer Relations # -# Generated on: 09/18/2024 +# Generated on: 09/19/2024 # @{ diff --git a/PSSailpoint/beta/src/PSSailpoint.Beta/PSSailpoint.Beta.psd1 b/PSSailpoint/beta/src/PSSailpoint.Beta/PSSailpoint.Beta.psd1 index eba81dc73..9f873c219 100644 --- a/PSSailpoint/beta/src/PSSailpoint.Beta/PSSailpoint.Beta.psd1 +++ b/PSSailpoint/beta/src/PSSailpoint.Beta/PSSailpoint.Beta.psd1 @@ -3,7 +3,7 @@ # # Generated by: OpenAPI Generator Team # -# Generated on: 09/18/2024 +# Generated on: 09/19/2024 # @{ diff --git a/PSSailpoint/v2024/src/PSSailpoint.V2024/PSSailpoint.V2024.psd1 b/PSSailpoint/v2024/src/PSSailpoint.V2024/PSSailpoint.V2024.psd1 index 6bd8c6aa9..6457750e2 100644 --- a/PSSailpoint/v2024/src/PSSailpoint.V2024/PSSailpoint.V2024.psd1 +++ b/PSSailpoint/v2024/src/PSSailpoint.V2024/PSSailpoint.V2024.psd1 @@ -3,7 +3,7 @@ # # Generated by: OpenAPI Generator Team # -# Generated on: 09/18/2024 +# Generated on: 09/19/2024 # @{ diff --git a/PSSailpoint/v3/README.md b/PSSailpoint/v3/README.md index c05f01975..bf4b7e555 100644 --- a/PSSailpoint/v3/README.md +++ b/PSSailpoint/v3/README.md @@ -207,8 +207,10 @@ Class | Method | HTTP request | Description *ManagedClientsApi* | [**Update-ManagedClient**](docs/ManagedClientsApi.md#Update-ManagedClient) | **PATCH** /managed-clients/{id} | Update a Managed Client *ManagedClustersApi* | [**New-ManagedCluster**](docs/ManagedClustersApi.md#New-ManagedCluster) | **POST** /managed-clusters | Create a new Managed Cluster *ManagedClustersApi* | [**Remove-ManagedCluster**](docs/ManagedClustersApi.md#Remove-ManagedCluster) | **DELETE** /managed-clusters/{id} | Delete a Managed Cluster +*ManagedClustersApi* | [**Get-ClientLogConfiguration**](docs/ManagedClustersApi.md#Get-ClientLogConfiguration) | **GET** /managed-clusters/{id}/log-config | Get managed cluster's log configuration *ManagedClustersApi* | [**Get-ManagedCluster**](docs/ManagedClustersApi.md#Get-ManagedCluster) | **GET** /managed-clusters/{id} | Get a specified Managed Cluster. *ManagedClustersApi* | [**Get-ManagedClusters**](docs/ManagedClustersApi.md#Get-ManagedClusters) | **GET** /managed-clusters | Retrieve all Managed Clusters. +*ManagedClustersApi* | [**Send-ClientLogConfiguration**](docs/ManagedClustersApi.md#Send-ClientLogConfiguration) | **PUT** /managed-clusters/{id}/log-config | Update managed cluster's log configuration *ManagedClustersApi* | [**Update-ManagedCluster**](docs/ManagedClustersApi.md#Update-ManagedCluster) | **PATCH** /managed-clusters/{id} | Update a Managed Cluster *NonEmployeeLifecycleManagementApi* | [**Approve-NonEmployeeRequest**](docs/NonEmployeeLifecycleManagementApi.md#Approve-NonEmployeeRequest) | **POST** /non-employee-approvals/{id}/approve | Approve a Non-Employee Request *NonEmployeeLifecycleManagementApi* | [**New-NonEmployeeRecord**](docs/NonEmployeeLifecycleManagementApi.md#New-NonEmployeeRecord) | **POST** /non-employee-records | Create Non-Employee Record diff --git a/PSSailpoint/v3/docs/ManagedClustersApi.md b/PSSailpoint/v3/docs/ManagedClustersApi.md index 99773c66c..0e5dc47b0 100644 --- a/PSSailpoint/v3/docs/ManagedClustersApi.md +++ b/PSSailpoint/v3/docs/ManagedClustersApi.md @@ -6,8 +6,10 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**New-ManagedCluster**](ManagedClustersApi.md#New-ManagedCluster) | **POST** /managed-clusters | Create a new Managed Cluster [**Remove-ManagedCluster**](ManagedClustersApi.md#Remove-ManagedCluster) | **DELETE** /managed-clusters/{id} | Delete a Managed Cluster +[**Get-ClientLogConfiguration**](ManagedClustersApi.md#Get-ClientLogConfiguration) | **GET** /managed-clusters/{id}/log-config | Get managed cluster's log configuration [**Get-ManagedCluster**](ManagedClustersApi.md#Get-ManagedCluster) | **GET** /managed-clusters/{id} | Get a specified Managed Cluster. [**Get-ManagedClusters**](ManagedClustersApi.md#Get-ManagedClusters) | **GET** /managed-clusters | Retrieve all Managed Clusters. +[**Send-ClientLogConfiguration**](ManagedClustersApi.md#Send-ClientLogConfiguration) | **PUT** /managed-clusters/{id}/log-config | Update managed cluster's log configuration [**Update-ManagedCluster**](ManagedClustersApi.md#Update-ManagedCluster) | **PATCH** /managed-clusters/{id} | Update a Managed Cluster @@ -116,6 +118,57 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **Get-ClientLogConfiguration** +> ClientLogConfiguration Get-ClientLogConfiguration
+>         [-Id]
+ +Get managed cluster's log configuration + +Get managed cluster's log configuration. + +### Example +```powershell +# general setting of the PowerShell module, e.g. base URL, authentication, etc +$Configuration = Get-Configuration +# Configure OAuth2 access token for authorization: UserContextAuth +$Configuration.AccessToken = "YOUR_ACCESS_TOKEN" + +# Configure OAuth2 access token for authorization: UserContextAuth +$Configuration.AccessToken = "YOUR_ACCESS_TOKEN" + +$Id = "2b838de9-db9b-abcf-e646-d4f274ad4238" # String | ID of ManagedCluster to get log configuration for + +# Get managed cluster's log configuration +try { + $Result = Get-ClientLogConfiguration -Id $Id +} catch { + Write-Host ("Exception occurred when calling Get-ClientLogConfiguration: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **Id** | **String**| ID of ManagedCluster to get log configuration for | + +### Return type + +[**ClientLogConfiguration**](ClientLogConfiguration.md) (PSCustomObject) + +### Authorization + +[UserContextAuth](../README.md#UserContextAuth), [UserContextAuth](../README.md#UserContextAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **Get-ManagedCluster** > ManagedCluster Get-ManagedCluster
@@ -227,6 +280,60 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **Send-ClientLogConfiguration** +> ClientLogConfiguration Send-ClientLogConfiguration
+>         [-Id]
+>         [-ClientLogConfiguration]
+ +Update managed cluster's log configuration + +Update managed cluster's log configuration + +### Example +```powershell +# general setting of the PowerShell module, e.g. base URL, authentication, etc +$Configuration = Get-Configuration +# Configure OAuth2 access token for authorization: UserContextAuth +$Configuration.AccessToken = "YOUR_ACCESS_TOKEN" + +# Configure OAuth2 access token for authorization: UserContextAuth +$Configuration.AccessToken = "YOUR_ACCESS_TOKEN" + +$Id = "2b838de9-db9b-abcf-e646-d4f274ad4238" # String | ID of ManagedCluster to update log configuration for +$ClientLogConfiguration = Initialize-ClientLogConfiguration -ClientId "aClientId" -DurationMinutes 120 -Expiration (Get-Date) -RootLevel "false" -LogLevels @{ key_example = "false" } # ClientLogConfiguration | ClientLogConfiguration for given ManagedCluster + +# Update managed cluster's log configuration +try { + $Result = Send-ClientLogConfiguration -Id $Id -ClientLogConfiguration $ClientLogConfiguration +} catch { + Write-Host ("Exception occurred when calling Send-ClientLogConfiguration: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **Id** | **String**| ID of ManagedCluster to update log configuration for | + **ClientLogConfiguration** | [**ClientLogConfiguration**](ClientLogConfiguration.md)| ClientLogConfiguration for given ManagedCluster | + +### Return type + +[**ClientLogConfiguration**](ClientLogConfiguration.md) (PSCustomObject) + +### Authorization + +[UserContextAuth](../README.md#UserContextAuth), [UserContextAuth](../README.md#UserContextAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **Update-ManagedCluster** > ManagedCluster Update-ManagedCluster
diff --git a/PSSailpoint/v3/src/PSSailpoint.V3/Api/ManagedClustersApi.ps1 b/PSSailpoint/v3/src/PSSailpoint.V3/Api/ManagedClustersApi.ps1 index fb6ea92b1..c3dda5737 100644 --- a/PSSailpoint/v3/src/PSSailpoint.V3/Api/ManagedClustersApi.ps1 +++ b/PSSailpoint/v3/src/PSSailpoint.V3/Api/ManagedClustersApi.ps1 @@ -182,6 +182,80 @@ function Remove-ManagedCluster { <# .SYNOPSIS +Get managed cluster's log configuration + +.DESCRIPTION + +Get managed cluster's log configuration. + +.PARAMETER Id +ID of ManagedCluster to get log configuration for + +.PARAMETER WithHttpInfo + +A switch when turned on will return a hash table of Response, StatusCode and Headers instead of just the Response + +.OUTPUTS + +ClientLogConfiguration +#> +function Get-ClientLogConfiguration { + [CmdletBinding()] + Param ( + [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] + [String] + ${Id}, + [Switch] + $WithHttpInfo + ) + + Process { + 'Calling method: Get-ClientLogConfiguration' | Write-Debug + $PSBoundParameters | Out-DebugParameter | Write-Debug + + $LocalVarAccepts = @() + $LocalVarContentTypes = @() + $LocalVarQueryParameters = @{} + $LocalVarHeaderParameters = @{} + $LocalVarFormParameters = @{} + $LocalVarPathParameters = @{} + $LocalVarCookieParameters = @{} + $LocalVarBodyParameter = $null + + # HTTP header 'Accept' (if needed) + $LocalVarAccepts = @('application/json') + + $LocalVarUri = '/managed-clusters/{id}/log-config' + if (!$Id) { + throw "Error! The required parameter `Id` missing when calling getClientLogConfiguration." + } + $LocalVarUri = $LocalVarUri.replace('{id}', [System.Web.HTTPUtility]::UrlEncode($Id)) + + + + $LocalVarResult = Invoke-ApiClient -Method 'GET' ` + -Uri $LocalVarUri ` + -Accepts $LocalVarAccepts ` + -ContentTypes $LocalVarContentTypes ` + -Body $LocalVarBodyParameter ` + -HeaderParameters $LocalVarHeaderParameters ` + -QueryParameters $LocalVarQueryParameters ` + -FormParameters $LocalVarFormParameters ` + -CookieParameters $LocalVarCookieParameters ` + -ReturnType "ClientLogConfiguration" ` + -IsBodyNullable $false + + if ($WithHttpInfo.IsPresent) { + return $LocalVarResult + } else { + return $LocalVarResult["Response"] + } + } +} + +<# +.SYNOPSIS + Get a specified Managed Cluster. .DESCRIPTION @@ -360,6 +434,102 @@ function Get-ManagedClusters { <# .SYNOPSIS +Update managed cluster's log configuration + +.DESCRIPTION + +Update managed cluster's log configuration + +.PARAMETER Id +ID of ManagedCluster to update log configuration for + +.PARAMETER ClientLogConfiguration +ClientLogConfiguration for given ManagedCluster + +.PARAMETER WithHttpInfo + +A switch when turned on will return a hash table of Response, StatusCode and Headers instead of just the Response + +.OUTPUTS + +ClientLogConfiguration +#> +function Send-ClientLogConfiguration { + [CmdletBinding()] + Param ( + [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] + [String] + ${Id}, + [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] + [PSCustomObject] + ${ClientLogConfiguration}, + [Switch] + $WithHttpInfo + ) + + Process { + 'Calling method: Send-ClientLogConfiguration' | Write-Debug + $PSBoundParameters | Out-DebugParameter | Write-Debug + + $LocalVarAccepts = @() + $LocalVarContentTypes = @() + $LocalVarQueryParameters = @{} + $LocalVarHeaderParameters = @{} + $LocalVarFormParameters = @{} + $LocalVarPathParameters = @{} + $LocalVarCookieParameters = @{} + $LocalVarBodyParameter = $null + + # HTTP header 'Accept' (if needed) + $LocalVarAccepts = @('application/json') + + # HTTP header 'Content-Type' + $LocalVarContentTypes = @('application/json') + + $LocalVarUri = '/managed-clusters/{id}/log-config' + if (!$Id) { + throw "Error! The required parameter `Id` missing when calling putClientLogConfiguration." + } + $LocalVarUri = $LocalVarUri.replace('{id}', [System.Web.HTTPUtility]::UrlEncode($Id)) + + if ($LocalVarContentTypes.Contains('application/json-patch+json') -or ($ClientLogConfiguration -is [array])) { + $LocalVarBodyParameter = $ClientLogConfiguration | ConvertTo-Json -AsArray -Depth 100 + } else { + $LocalVarBodyParameter = $ClientLogConfiguration | ForEach-Object { + # Get array of names of object properties that can be cast to boolean TRUE + # PSObject.Properties - https://msdn.microsoft.com/en-us/library/system.management.automation.psobject.properties.aspx + $NonEmptyProperties = $_.psobject.Properties | Where-Object {$null -ne $_.Value} | Select-Object -ExpandProperty Name + + # Convert object to JSON with only non-empty properties + $_ | Select-Object -Property $NonEmptyProperties | ConvertTo-Json -Depth 100 + } + } + + + + $LocalVarResult = Invoke-ApiClient -Method 'PUT' ` + -Uri $LocalVarUri ` + -Accepts $LocalVarAccepts ` + -ContentTypes $LocalVarContentTypes ` + -Body $LocalVarBodyParameter ` + -HeaderParameters $LocalVarHeaderParameters ` + -QueryParameters $LocalVarQueryParameters ` + -FormParameters $LocalVarFormParameters ` + -CookieParameters $LocalVarCookieParameters ` + -ReturnType "ClientLogConfiguration" ` + -IsBodyNullable $true + + if ($WithHttpInfo.IsPresent) { + return $LocalVarResult + } else { + return $LocalVarResult["Response"] + } + } +} + +<# +.SYNOPSIS + Update a Managed Cluster .DESCRIPTION diff --git a/PSSailpoint/v3/src/PSSailpoint.V3/PSSailpoint.V3.psd1 b/PSSailpoint/v3/src/PSSailpoint.V3/PSSailpoint.V3.psd1 index b7f6fd71c..f22b0f9db 100644 --- a/PSSailpoint/v3/src/PSSailpoint.V3/PSSailpoint.V3.psd1 +++ b/PSSailpoint/v3/src/PSSailpoint.V3/PSSailpoint.V3.psd1 @@ -3,7 +3,7 @@ # # Generated by: OpenAPI Generator Team # -# Generated on: 09/18/2024 +# Generated on: 09/19/2024 # @{ @@ -133,12 +133,13 @@ FunctionsToExport = 'New-AccessProfile', 'Remove-AccessProfile', 'New-ManagedClient', 'Remove-ManagedClient', 'Get-ManagedClient', 'Get-ManagedClientStatus', 'Get-ManagedClients', 'Update-ManagedClient', 'New-ManagedCluster', 'Remove-ManagedCluster', - 'Get-ManagedCluster', 'Get-ManagedClusters', 'Update-ManagedCluster', - 'Remove-MFAConfig', 'Get-MFADuoConfig', 'Get-MFAKbaConfig', - 'Get-MFAOktaConfig', 'Set-MFADuoConfig', 'Set-MFAKBAConfig', - 'Set-MFAOktaConfig', 'Test-MFAConfig', 'New-SendToken', - 'Ping-VerificationStatus', 'Send-DuoVerifyRequest', 'Send-KbaAnswers', - 'Send-OktaVerifyRequest', 'Send-TokenAuthRequest', + 'Get-ClientLogConfiguration', 'Get-ManagedCluster', + 'Get-ManagedClusters', 'Send-ClientLogConfiguration', + 'Update-ManagedCluster', 'Remove-MFAConfig', 'Get-MFADuoConfig', + 'Get-MFAKbaConfig', 'Get-MFAOktaConfig', 'Set-MFADuoConfig', + 'Set-MFAKBAConfig', 'Set-MFAOktaConfig', 'Test-MFAConfig', + 'New-SendToken', 'Ping-VerificationStatus', 'Send-DuoVerifyRequest', + 'Send-KbaAnswers', 'Send-OktaVerifyRequest', 'Send-TokenAuthRequest', 'Approve-NonEmployeeRequest', 'New-NonEmployeeRecord', 'New-NonEmployeeRequest', 'New-NonEmployeeSource', 'New-NonEmployeeSourceSchemaAttributes', 'Remove-NonEmployeeRecord', diff --git a/PSSailpoint/v3/tests/Api/ManagedClustersApi.Tests.ps1 b/PSSailpoint/v3/tests/Api/ManagedClustersApi.Tests.ps1 index 91a1aa60c..064b03318 100644 --- a/PSSailpoint/v3/tests/Api/ManagedClustersApi.Tests.ps1 +++ b/PSSailpoint/v3/tests/Api/ManagedClustersApi.Tests.ps1 @@ -22,6 +22,14 @@ Describe -tag 'PSSailpoint.V3' -name 'ManagedClustersApi' { } } + Context 'Get-ClientLogConfiguration' { + It 'Test Get-ClientLogConfiguration' { + #$TestResult = Get-ClientLogConfiguration -Id "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + Context 'Get-ManagedCluster' { It 'Test Get-ManagedCluster' { #$TestResult = Get-ManagedCluster -Id "TEST_VALUE" @@ -38,6 +46,14 @@ Describe -tag 'PSSailpoint.V3' -name 'ManagedClustersApi' { } } + Context 'Send-ClientLogConfiguration' { + It 'Test Send-ClientLogConfiguration' { + #$TestResult = Send-ClientLogConfiguration -Id "TEST_VALUE" -ClientLogConfiguration "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + Context 'Update-ManagedCluster' { It 'Test Update-ManagedCluster' { #$TestResult = Update-ManagedCluster -Id "TEST_VALUE" -JsonPatchOperation "TEST_VALUE"