Model/TenantUiMetadataItemUpdateRequest.ps1

#
# Identity Security Cloud Beta API
# 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.
# Version: 3.1.0-beta
# Generated by OpenAPI Generator: https://openapi-generator.tech
#

<#
.SYNOPSIS

No summary available.

.DESCRIPTION

No description available.

.PARAMETER IframeWhiteList
Parameter that organizational administrators can adjust to permit another domain to encapsulate IDN within an iframe. If you would like to reset the value use ""null"". It will only allow include into iframe non authenticated portions of the product, such as password reset.
.PARAMETER UsernameLabel
Descriptor for the username input field. If you would like to reset the value use ""null"".
.PARAMETER UsernameEmptyText
Placeholder text displayed in the username input field. If you would like to reset the value use ""null"".
.OUTPUTS

TenantUiMetadataItemUpdateRequest<PSCustomObject>
#>


function Initialize-BetaTenantUiMetadataItemUpdateRequest {
    [CmdletBinding()]
    Param (
        [Parameter(ValueFromPipelineByPropertyName = $true)]
        [String]
        ${IframeWhiteList},
        [Parameter(ValueFromPipelineByPropertyName = $true)]
        [String]
        ${UsernameLabel},
        [Parameter(ValueFromPipelineByPropertyName = $true)]
        [String]
        ${UsernameEmptyText}
    )

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


        $PSO = [PSCustomObject]@{
            "iframeWhiteList" = ${IframeWhiteList}
            "usernameLabel" = ${UsernameLabel}
            "usernameEmptyText" = ${UsernameEmptyText}
        }

        return $PSO
    }
}

<#
.SYNOPSIS

Convert from JSON to TenantUiMetadataItemUpdateRequest<PSCustomObject>

.DESCRIPTION

Convert from JSON to TenantUiMetadataItemUpdateRequest<PSCustomObject>

.PARAMETER Json

Json object

.OUTPUTS

TenantUiMetadataItemUpdateRequest<PSCustomObject>
#>

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

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

        $JsonParameters = ConvertFrom-Json -InputObject $Json

        # check if Json contains properties not defined in BetaTenantUiMetadataItemUpdateRequest
        $AllProperties = ("iframeWhiteList", "usernameLabel", "usernameEmptyText")
        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 "iframeWhiteList"))) { #optional property not found
            $IframeWhiteList = $null
        } else {
            $IframeWhiteList = $JsonParameters.PSobject.Properties["iframeWhiteList"].value
        }

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

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

        $PSO = [PSCustomObject]@{
            "iframeWhiteList" = ${IframeWhiteList}
            "usernameLabel" = ${UsernameLabel}
            "usernameEmptyText" = ${UsernameEmptyText}
        }

        return $PSO
    }

}