Model/ConnectorCustomizerVersionCreateResponse.ps1

#
# Identity Security Cloud V2024 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: v2024
# Generated by OpenAPI Generator: https://openapi-generator.tech
#

<#
.SYNOPSIS

No summary available.

.DESCRIPTION

ConnectorCustomizerVersionCreateResponse

.PARAMETER CustomizerID
ID of connector customizer.
.PARAMETER ImageID
ImageID of the connector customizer.
.PARAMETER Version
Image version of the connector customizer.
.PARAMETER Created
Date-time when the connector customizer version was created.
.OUTPUTS

ConnectorCustomizerVersionCreateResponse<PSCustomObject>
#>


function Initialize-V2024ConnectorCustomizerVersionCreateResponse {
    [CmdletBinding()]
    Param (
        [Parameter(ValueFromPipelineByPropertyName = $true)]
        [String]
        ${CustomizerID},
        [Parameter(ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ImageID},
        [Parameter(ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int64]]
        ${Version},
        [Parameter(ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${Created}
    )

    Process {
        'Creating PSCustomObject: PSSailpoint.V2024 => V2024ConnectorCustomizerVersionCreateResponse' | Write-Debug
        $PSBoundParameters | Out-DebugParameter | Write-Debug


        $PSO = [PSCustomObject]@{
            "customizerID" = ${CustomizerID}
            "imageID" = ${ImageID}
            "version" = ${Version}
            "created" = ${Created}
        }

        return $PSO
    }
}

<#
.SYNOPSIS

Convert from JSON to ConnectorCustomizerVersionCreateResponse<PSCustomObject>

.DESCRIPTION

Convert from JSON to ConnectorCustomizerVersionCreateResponse<PSCustomObject>

.PARAMETER Json

Json object

.OUTPUTS

ConnectorCustomizerVersionCreateResponse<PSCustomObject>
#>

function ConvertFrom-V2024JsonToConnectorCustomizerVersionCreateResponse {
    Param(
        [AllowEmptyString()]
        [string]$Json
    )

    Process {
        'Converting JSON to PSCustomObject: PSSailpoint.V2024 => V2024ConnectorCustomizerVersionCreateResponse' | Write-Debug
        $PSBoundParameters | Out-DebugParameter | Write-Debug

        $JsonParameters = ConvertFrom-Json -InputObject $Json

        # check if Json contains properties not defined in V2024ConnectorCustomizerVersionCreateResponse
        $AllProperties = ("customizerID", "imageID", "version", "created")
        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 "customizerID"))) { #optional property not found
            $CustomizerID = $null
        } else {
            $CustomizerID = $JsonParameters.PSobject.Properties["customizerID"].value
        }

        if (!([bool]($JsonParameters.PSobject.Properties.name -match "imageID"))) { #optional property not found
            $ImageID = $null
        } else {
            $ImageID = $JsonParameters.PSobject.Properties["imageID"].value
        }

        if (!([bool]($JsonParameters.PSobject.Properties.name -match "version"))) { #optional property not found
            $Version = $null
        } else {
            $Version = $JsonParameters.PSobject.Properties["version"].value
        }

        if (!([bool]($JsonParameters.PSobject.Properties.name -match "created"))) { #optional property not found
            $Created = $null
        } else {
            $Created = $JsonParameters.PSobject.Properties["created"].value
        }

        $PSO = [PSCustomObject]@{
            "customizerID" = ${CustomizerID}
            "imageID" = ${ImageID}
            "version" = ${Version}
            "created" = ${Created}
        }

        return $PSO
    }

}