Skip to content

Commit

Permalink
Automated build 'Automated commit 'Merge pull request #1821 from sail…
Browse files Browse the repository at this point in the history
…point/managed-cluster-log-api

Add managed cluster log apis to v3' by github action: 10943763135' powershell sdk: 10943770847
  • Loading branch information
developer-relations-sp committed Sep 19, 2024
1 parent 2977ddd commit 945d98e
Show file tree
Hide file tree
Showing 8 changed files with 306 additions and 10 deletions.
2 changes: 1 addition & 1 deletion 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: 09/18/2024
# Generated on: 09/19/2024
#

@{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: OpenAPI Generator Team
#
# Generated on: 09/18/2024
# Generated on: 09/19/2024
#

@{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: OpenAPI Generator Team
#
# Generated on: 09/18/2024
# Generated on: 09/19/2024
#

@{
Expand Down
2 changes: 2 additions & 0 deletions PSSailpoint/v3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
107 changes: 107 additions & 0 deletions PSSailpoint/v3/docs/ManagedClustersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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)

<a id="Get-ClientLogConfiguration"></a>
# **Get-ClientLogConfiguration**
> ClientLogConfiguration Get-ClientLogConfiguration<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Id] <String><br>
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)

<a id="Get-ManagedCluster"></a>
# **Get-ManagedCluster**
> ManagedCluster Get-ManagedCluster<br>
Expand Down Expand Up @@ -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)

<a id="Send-ClientLogConfiguration"></a>
# **Send-ClientLogConfiguration**
> ClientLogConfiguration Send-ClientLogConfiguration<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Id] <String><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-ClientLogConfiguration] <PSCustomObject><br>
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)

<a id="Update-ManagedCluster"></a>
# **Update-ManagedCluster**
> ManagedCluster Update-ManagedCluster<br>
Expand Down
170 changes: 170 additions & 0 deletions PSSailpoint/v3/src/PSSailpoint.V3/Api/ManagedClustersApi.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
15 changes: 8 additions & 7 deletions PSSailpoint/v3/src/PSSailpoint.V3/PSSailpoint.V3.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: OpenAPI Generator Team
#
# Generated on: 09/18/2024
# Generated on: 09/19/2024
#

@{
Expand Down Expand Up @@ -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',
Expand Down
Loading

0 comments on commit 945d98e

Please sign in to comment.