beta/src/PSSailpoint.Beta/Model/DkimAttributes.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 DKIM attributes for a domain or identity .PARAMETER Id UUID associated with domain to be verified .PARAMETER Address The identity or domain address .PARAMETER DkimEnabled Whether or not DKIM has been enabled for this domain / identity .PARAMETER DkimTokens The tokens to be added to a DNS for verification .PARAMETER DkimVerificationStatus The current status if the domain /identity has been verified. Ie Success, Failed, Pending .OUTPUTS DkimAttributes<PSCustomObject> #> function Initialize-BetaDkimAttributes { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Id}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Address}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${DkimEnabled} = $false, [Parameter(ValueFromPipelineByPropertyName = $true)] [String[]] ${DkimTokens}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${DkimVerificationStatus} ) Process { 'Creating PSCustomObject: PSSailpoint.Beta => BetaDkimAttributes' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "id" = ${Id} "address" = ${Address} "dkimEnabled" = ${DkimEnabled} "dkimTokens" = ${DkimTokens} "dkimVerificationStatus" = ${DkimVerificationStatus} } return $PSO } } <# .SYNOPSIS Convert from JSON to DkimAttributes<PSCustomObject> .DESCRIPTION Convert from JSON to DkimAttributes<PSCustomObject> .PARAMETER Json Json object .OUTPUTS DkimAttributes<PSCustomObject> #> function ConvertFrom-BetaJsonToDkimAttributes { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.Beta => BetaDkimAttributes' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in BetaDkimAttributes $AllProperties = ("id", "address", "dkimEnabled", "dkimTokens", "dkimVerificationStatus") 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 "id"))) { #optional property not found $Id = $null } else { $Id = $JsonParameters.PSobject.Properties["id"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "address"))) { #optional property not found $Address = $null } else { $Address = $JsonParameters.PSobject.Properties["address"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "dkimEnabled"))) { #optional property not found $DkimEnabled = $null } else { $DkimEnabled = $JsonParameters.PSobject.Properties["dkimEnabled"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "dkimTokens"))) { #optional property not found $DkimTokens = $null } else { $DkimTokens = $JsonParameters.PSobject.Properties["dkimTokens"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "dkimVerificationStatus"))) { #optional property not found $DkimVerificationStatus = $null } else { $DkimVerificationStatus = $JsonParameters.PSobject.Properties["dkimVerificationStatus"].value } $PSO = [PSCustomObject]@{ "id" = ${Id} "address" = ${Address} "dkimEnabled" = ${DkimEnabled} "dkimTokens" = ${DkimTokens} "dkimVerificationStatus" = ${DkimVerificationStatus} } return $PSO } } |