v2025/src/PSSailpoint.V2025/Model/TransmitterMetadata.ps1
|
# # Identity Security Cloud V2025 API # Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs. # Version: v2025 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION SSF transmitter discovery metadata per the SSF specification. .PARAMETER SpecVersion Version of the SSF specification supported. .PARAMETER Issuer Base URL of the transmitter (issuer). .PARAMETER JwksUri URL of the transmitter's JSON Web Key Set. .PARAMETER DeliveryMethodsSupported Supported delivery methods (e.g. push URN). .PARAMETER ConfigurationEndpoint Endpoint for stream configuration (create, read, update, replace, delete). .PARAMETER StatusEndpoint Endpoint for reading and updating stream status. .PARAMETER VerificationEndpoint Endpoint for receiver verification. .PARAMETER AuthorizationSchemes Supported authorization schemes (e.g. OAuth2, Bearer). .OUTPUTS TransmitterMetadata<PSCustomObject> #> function Initialize-V2025TransmitterMetadata { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${SpecVersion}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Issuer}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${JwksUri}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String[]] ${DeliveryMethodsSupported}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${ConfigurationEndpoint}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${StatusEndpoint}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${VerificationEndpoint}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${AuthorizationSchemes} ) Process { 'Creating PSCustomObject: PSSailpoint.V2025 => V2025TransmitterMetadata' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "spec_version" = ${SpecVersion} "issuer" = ${Issuer} "jwks_uri" = ${JwksUri} "delivery_methods_supported" = ${DeliveryMethodsSupported} "configuration_endpoint" = ${ConfigurationEndpoint} "status_endpoint" = ${StatusEndpoint} "verification_endpoint" = ${VerificationEndpoint} "authorization_schemes" = ${AuthorizationSchemes} } return $PSO } } <# .SYNOPSIS Convert from JSON to TransmitterMetadata<PSCustomObject> .DESCRIPTION Convert from JSON to TransmitterMetadata<PSCustomObject> .PARAMETER Json Json object .OUTPUTS TransmitterMetadata<PSCustomObject> #> function ConvertFrom-V2025JsonToTransmitterMetadata { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.V2025 => V2025TransmitterMetadata' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in V2025TransmitterMetadata $AllProperties = ("spec_version", "issuer", "jwks_uri", "delivery_methods_supported", "configuration_endpoint", "status_endpoint", "verification_endpoint", "authorization_schemes") 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 "spec_version"))) { #optional property not found $SpecVersion = $null } else { $SpecVersion = $JsonParameters.PSobject.Properties["spec_version"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "issuer"))) { #optional property not found $Issuer = $null } else { $Issuer = $JsonParameters.PSobject.Properties["issuer"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "jwks_uri"))) { #optional property not found $JwksUri = $null } else { $JwksUri = $JsonParameters.PSobject.Properties["jwks_uri"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "delivery_methods_supported"))) { #optional property not found $DeliveryMethodsSupported = $null } else { $DeliveryMethodsSupported = $JsonParameters.PSobject.Properties["delivery_methods_supported"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "configuration_endpoint"))) { #optional property not found $ConfigurationEndpoint = $null } else { $ConfigurationEndpoint = $JsonParameters.PSobject.Properties["configuration_endpoint"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "status_endpoint"))) { #optional property not found $StatusEndpoint = $null } else { $StatusEndpoint = $JsonParameters.PSobject.Properties["status_endpoint"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "verification_endpoint"))) { #optional property not found $VerificationEndpoint = $null } else { $VerificationEndpoint = $JsonParameters.PSobject.Properties["verification_endpoint"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "authorization_schemes"))) { #optional property not found $AuthorizationSchemes = $null } else { $AuthorizationSchemes = $JsonParameters.PSobject.Properties["authorization_schemes"].value } $PSO = [PSCustomObject]@{ "spec_version" = ${SpecVersion} "issuer" = ${Issuer} "jwks_uri" = ${JwksUri} "delivery_methods_supported" = ${DeliveryMethodsSupported} "configuration_endpoint" = ${ConfigurationEndpoint} "status_endpoint" = ${StatusEndpoint} "verification_endpoint" = ${VerificationEndpoint} "authorization_schemes" = ${AuthorizationSchemes} } return $PSO } } |