cc/src/PSSailpointCC/Model/ListApplications200ResponseInnerAccountServicePoliciesInner.ps1
# # IdentityNow cc (private) APIs # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER PolicyId No description available. .PARAMETER PolicyName No description available. .PARAMETER Selectors No description available. .OUTPUTS ListApplications200ResponseInnerAccountServicePoliciesInner<PSCustomObject> #> function Initialize-CCListApplications200ResponseInnerAccountServicePoliciesInner { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String] ${PolicyId}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)] [String] ${PolicyName}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Selectors} ) Process { 'Creating PSCustomObject: PSSailpointCC => CCListApplications200ResponseInnerAccountServicePoliciesInner' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "policyId" = ${PolicyId} "policyName" = ${PolicyName} "selectors" = ${Selectors} } return $PSO } } <# .SYNOPSIS Convert from JSON to ListApplications200ResponseInnerAccountServicePoliciesInner<PSCustomObject> .DESCRIPTION Convert from JSON to ListApplications200ResponseInnerAccountServicePoliciesInner<PSCustomObject> .PARAMETER Json Json object .OUTPUTS ListApplications200ResponseInnerAccountServicePoliciesInner<PSCustomObject> #> function ConvertFrom-CCJsonToListApplications200ResponseInnerAccountServicePoliciesInner { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpointCC => CCListApplications200ResponseInnerAccountServicePoliciesInner' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in CCListApplications200ResponseInnerAccountServicePoliciesInner $AllProperties = ("policyId", "policyName", "selectors") foreach ($name in $JsonParameters.PsObject.Properties.Name) { if (!($AllProperties.Contains($name))) { throw "Error! JSON key '$name' not found in the properties: $($AllProperties)" } } if (!([bool]($JsonParameters.PSobject.Properties.name -match "policyId"))) { #optional property not found $PolicyId = $null } else { $PolicyId = $JsonParameters.PSobject.Properties["policyId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "policyName"))) { #optional property not found $PolicyName = $null } else { $PolicyName = $JsonParameters.PSobject.Properties["policyName"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "selectors"))) { #optional property not found $Selectors = $null } else { $Selectors = $JsonParameters.PSobject.Properties["selectors"].value } $PSO = [PSCustomObject]@{ "policyId" = ${PolicyId} "policyName" = ${PolicyName} "selectors" = ${Selectors} } return $PSO } } |