Skip to content

Commit 361bf81

Browse files
Automated build 'Automated commit 'Merge pull request #2244 from sailpoint/SAASDOCS-10106-update-get-source-by-id-api-spec
SAASDOCS-10106 update get source by id api doc' by github action: 17273597861' powershell sdk: 17273629981
1 parent cfbbfee commit 361bf81

37 files changed

Lines changed: 585 additions & 48 deletions

PSSailpoint/PSSailpoint.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Sailpoint Developer Relations
55
#
6-
# Generated on: 08/26/2025
6+
# Generated on: 08/27/2025
77
#
88

99
@{

PSSailpoint/beta/.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ docs/SourceDeleted.md
946946
docs/SourceDeletedActor.md
947947
docs/SourceEntitlementRequestConfig.md
948948
docs/SourceItemRef.md
949+
docs/SourceOwner.md
949950
docs/SourceSyncJob.md
950951
docs/SourceSyncPayload.md
951952
docs/SourceUpdated.md
@@ -1954,6 +1955,7 @@ src/PSSailpoint.Beta/Model/SourceDeleted.ps1
19541955
src/PSSailpoint.Beta/Model/SourceDeletedActor.ps1
19551956
src/PSSailpoint.Beta/Model/SourceEntitlementRequestConfig.ps1
19561957
src/PSSailpoint.Beta/Model/SourceItemRef.ps1
1958+
src/PSSailpoint.Beta/Model/SourceOwner.ps1
19571959
src/PSSailpoint.Beta/Model/SourceSyncJob.ps1
19581960
src/PSSailpoint.Beta/Model/SourceSyncPayload.ps1
19591961
src/PSSailpoint.Beta/Model/SourceUpdated.ps1
@@ -2968,6 +2970,7 @@ tests/Model/SourceDeleted.Tests.ps1
29682970
tests/Model/SourceDeletedActor.Tests.ps1
29692971
tests/Model/SourceEntitlementRequestConfig.Tests.ps1
29702972
tests/Model/SourceItemRef.Tests.ps1
2973+
tests/Model/SourceOwner.Tests.ps1
29712974
tests/Model/SourceSyncJob.Tests.ps1
29722975
tests/Model/SourceSyncPayload.Tests.ps1
29732976
tests/Model/SourceUpdated.Tests.ps1

PSSailpoint/beta/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,7 @@ Class | Method | HTTP request | Description
14081408
- [PSSailpoint.Beta\Model.SourceDeletedActor](docs/SourceDeletedActor.md)
14091409
- [PSSailpoint.Beta\Model.SourceEntitlementRequestConfig](docs/SourceEntitlementRequestConfig.md)
14101410
- [PSSailpoint.Beta\Model.SourceItemRef](docs/SourceItemRef.md)
1411+
- [PSSailpoint.Beta\Model.SourceOwner](docs/SourceOwner.md)
14111412
- [PSSailpoint.Beta\Model.SourceSyncJob](docs/SourceSyncJob.md)
14121413
- [PSSailpoint.Beta\Model.SourceSyncPayload](docs/SourceSyncPayload.md)
14131414
- [PSSailpoint.Beta\Model.SourceUpdated](docs/SourceUpdated.md)

PSSailpoint/beta/docs/Models/Source.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
1919
**Id** | **String** | Source ID. | [optional] [readonly]
2020
**Name** | **String** | Source's human-readable name. | [required]
2121
**Description** | **String** | Source's human-readable description. | [optional]
22-
**Owner** | [**MultiHostIntegrationsOwner**](multi-host-integrations-owner) | | [required]
22+
**Owner** | [**SourceOwner**](source-owner) | | [required]
2323
**Cluster** | [**MultiHostIntegrationsCluster**](multi-host-integrations-cluster) | | [optional]
2424
**AccountCorrelationConfig** | [**MultiHostSourcesAccountCorrelationConfig**](multi-host-sources-account-correlation-config) | | [optional]
2525
**AccountCorrelationRule** | [**MultiHostSourcesAccountCorrelationRule**](multi-host-sources-account-correlation-rule) | | [optional]
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
id: beta-source-owner
3+
title: SourceOwner
4+
pagination_label: SourceOwner
5+
sidebar_label: SourceOwner
6+
sidebar_class_name: powershellsdk
7+
keywords: ['powershell', 'PowerShell', 'sdk', 'SourceOwner', 'BetaSourceOwner']
8+
slug: /tools/sdk/powershell/beta/models/source-owner
9+
tags: ['SDK', 'Software Development Kit', 'SourceOwner', 'BetaSourceOwner']
10+
---
11+
12+
13+
# SourceOwner
14+
15+
## Properties
16+
17+
Name | Type | Description | Notes
18+
------------ | ------------- | ------------- | -------------
19+
**Type** | **Enum** [ "IDENTITY" ] | Type of object being referenced. | [optional]
20+
**Id** | **String** | Owner identity's ID. | [optional]
21+
**Name** | **String** | Owner identity's human-readable display name. | [optional]
22+
23+
## Examples
24+
25+
- Prepare the resource
26+
```powershell
27+
$SourceOwner = Initialize-BetaSourceOwner -Type IDENTITY `
28+
-Id 2c91808568c529c60168cca6f90c1313 `
29+
-Name MyName
30+
```
31+
32+
- Convert the resource to JSON
33+
```powershell
34+
$SourceOwner | ConvertTo-JSON
35+
```
36+
37+
38+
[[Back to top]](#)
39+

PSSailpoint/beta/src/PSSailpoint.Beta/Model/Source.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,6 @@ function Initialize-BetaSource {
184184
throw "invalid value for 'Name', 'Name' cannot be null."
185185
}
186186

187-
if (!$Owner) {
188-
throw "invalid value for 'Owner', 'Owner' cannot be null."
189-
}
190-
191187
if (!$Connector) {
192188
throw "invalid value for 'Connector', 'Connector' cannot be null."
193189
}
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
#
2+
# Identity Security Cloud Beta API
3+
# Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. These APIs are in beta and are subject to change. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
4+
# Version: 3.1.0-beta
5+
# Generated by OpenAPI Generator: https://openapi-generator.tech
6+
#
7+
8+
<#
9+
.SYNOPSIS
10+
11+
No summary available.
12+
13+
.DESCRIPTION
14+
15+
Reference to identity object who owns the source.
16+
17+
.PARAMETER Type
18+
Type of object being referenced.
19+
.PARAMETER Id
20+
Owner identity's ID.
21+
.PARAMETER Name
22+
Owner identity's human-readable display name.
23+
.OUTPUTS
24+
25+
SourceOwner<PSCustomObject>
26+
#>
27+
28+
function Initialize-BetaSourceOwner {
29+
[CmdletBinding()]
30+
Param (
31+
[Parameter(ValueFromPipelineByPropertyName = $true)]
32+
[ValidateSet("IDENTITY")]
33+
[String]
34+
${Type},
35+
[Parameter(ValueFromPipelineByPropertyName = $true)]
36+
[String]
37+
${Id},
38+
[Parameter(ValueFromPipelineByPropertyName = $true)]
39+
[String]
40+
${Name}
41+
)
42+
43+
Process {
44+
'Creating PSCustomObject: PSSailpoint.Beta => BetaSourceOwner' | Write-Debug
45+
$PSBoundParameters | Out-DebugParameter | Write-Debug
46+
47+
48+
$PSO = [PSCustomObject]@{
49+
"type" = ${Type}
50+
"id" = ${Id}
51+
"name" = ${Name}
52+
}
53+
54+
return $PSO
55+
}
56+
}
57+
58+
<#
59+
.SYNOPSIS
60+
61+
Convert from JSON to SourceOwner<PSCustomObject>
62+
63+
.DESCRIPTION
64+
65+
Convert from JSON to SourceOwner<PSCustomObject>
66+
67+
.PARAMETER Json
68+
69+
Json object
70+
71+
.OUTPUTS
72+
73+
SourceOwner<PSCustomObject>
74+
#>
75+
function ConvertFrom-BetaJsonToSourceOwner {
76+
Param(
77+
[AllowEmptyString()]
78+
[string]$Json
79+
)
80+
81+
Process {
82+
'Converting JSON to PSCustomObject: PSSailpoint.Beta => BetaSourceOwner' | Write-Debug
83+
$PSBoundParameters | Out-DebugParameter | Write-Debug
84+
85+
$JsonParameters = ConvertFrom-Json -InputObject $Json
86+
87+
# check if Json contains properties not defined in BetaSourceOwner
88+
$AllProperties = ("type", "id", "name")
89+
foreach ($name in $JsonParameters.PsObject.Properties.Name) {
90+
if (!($AllProperties.Contains($name))) {
91+
throw "Error! JSON key '$name' not found in the properties: $($AllProperties)"
92+
}
93+
}
94+
95+
if (!([bool]($JsonParameters.PSobject.Properties.name -match "type"))) { #optional property not found
96+
$Type = $null
97+
} else {
98+
$Type = $JsonParameters.PSobject.Properties["type"].value
99+
}
100+
101+
if (!([bool]($JsonParameters.PSobject.Properties.name -match "id"))) { #optional property not found
102+
$Id = $null
103+
} else {
104+
$Id = $JsonParameters.PSobject.Properties["id"].value
105+
}
106+
107+
if (!([bool]($JsonParameters.PSobject.Properties.name -match "name"))) { #optional property not found
108+
$Name = $null
109+
} else {
110+
$Name = $JsonParameters.PSobject.Properties["name"].value
111+
}
112+
113+
$PSO = [PSCustomObject]@{
114+
"type" = ${Type}
115+
"id" = ${Id}
116+
"name" = ${Name}
117+
}
118+
119+
return $PSO
120+
}
121+
122+
}
123+

PSSailpoint/beta/src/PSSailpoint.Beta/PSSailpoint.Beta.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: OpenAPI Generator Team
55
#
6-
# Generated on: 08/26/2025
6+
# Generated on: 08/27/2025
77
#
88

99
@{
@@ -1767,8 +1767,8 @@ FunctionsToExport = 'Get-BetaAccessModelMetadataAttribute',
17671767
'Initialize-BetaSourceEntitlementRequestConfig',
17681768
'ConvertFrom-BetaJsonToSourceEntitlementRequestConfig',
17691769
'Initialize-BetaSourceItemRef',
1770-
'ConvertFrom-BetaJsonToSourceItemRef',
1771-
'Initialize-BetaSourceSyncJob',
1770+
'ConvertFrom-BetaJsonToSourceItemRef', 'Initialize-BetaSourceOwner',
1771+
'ConvertFrom-BetaJsonToSourceOwner', 'Initialize-BetaSourceSyncJob',
17721772
'ConvertFrom-BetaJsonToSourceSyncJob',
17731773
'Initialize-BetaSourceSyncPayload',
17741774
'ConvertFrom-BetaJsonToSourceSyncPayload',
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# Identity Security Cloud Beta API
3+
# Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. These APIs are in beta and are subject to change. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
4+
# Version: 3.1.0-beta
5+
# Generated by OpenAPI Generator: https://openapi-generator.tech
6+
#
7+
8+
Describe -tag 'PSSailpoint.Beta' -name 'BetaSourceOwner' {
9+
Context 'BetaSourceOwner' {
10+
It 'Initialize-BetaSourceOwner' {
11+
# a simple test to create an object
12+
#$NewObject = Initialize-BetaSourceOwner -Type "TEST_VALUE" -Id "TEST_VALUE" -Name "TEST_VALUE"
13+
#$NewObject | Should -BeOfType SourceOwner
14+
#$NewObject.property | Should -Be 0
15+
}
16+
}
17+
}

PSSailpoint/v2024/.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ docs/MultiHostIntegrationsConnectorAttributesConnectorFileUploadHistory.md
652652
docs/MultiHostIntegrationsConnectorAttributesMultiHostAttributes.md
653653
docs/MultiHostIntegrationsCreate.md
654654
docs/MultiHostIntegrationsCreateSources.md
655+
docs/MultiHostIntegrationsOwner.md
655656
docs/MultiHostSources.md
656657
docs/MultiPolicyRequest.md
657658
docs/NameNormalizer.md
@@ -2119,6 +2120,7 @@ src/PSSailpoint.V2024/Model/MultiHostIntegrationsConnectorAttributesConnectorFil
21192120
src/PSSailpoint.V2024/Model/MultiHostIntegrationsConnectorAttributesMultiHostAttributes.ps1
21202121
src/PSSailpoint.V2024/Model/MultiHostIntegrationsCreate.ps1
21212122
src/PSSailpoint.V2024/Model/MultiHostIntegrationsCreateSources.ps1
2123+
src/PSSailpoint.V2024/Model/MultiHostIntegrationsOwner.ps1
21222124
src/PSSailpoint.V2024/Model/MultiHostSources.ps1
21232125
src/PSSailpoint.V2024/Model/MultiPolicyRequest.ps1
21242126
src/PSSailpoint.V2024/Model/NameNormalizer.ps1
@@ -3404,6 +3406,7 @@ tests/Model/MultiHostIntegrationsConnectorAttributesConnectorFileUploadHistory.T
34043406
tests/Model/MultiHostIntegrationsConnectorAttributesMultiHostAttributes.Tests.ps1
34053407
tests/Model/MultiHostIntegrationsCreate.Tests.ps1
34063408
tests/Model/MultiHostIntegrationsCreateSources.Tests.ps1
3409+
tests/Model/MultiHostIntegrationsOwner.Tests.ps1
34073410
tests/Model/MultiHostSources.Tests.ps1
34083411
tests/Model/MultiPolicyRequest.Tests.ps1
34093412
tests/Model/NameNormalizer.Tests.ps1

0 commit comments

Comments
 (0)