Model/LdapActionWorkflowActionValueBuildersAttributes.ps1
|
# # NERM API # The NERM API accesss and modifies resources in your environment. # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Id the id. .PARAMETER WorkflowActionId the id of the workflow action. .PARAMETER ValueBuilderId the id of the value builder. .PARAMETER Position the position of the value builder attribute. .OUTPUTS LdapActionWorkflowActionValueBuildersAttributes<PSCustomObject> #> function Initialize-NERMLdapActionWorkflowActionValueBuildersAttributes { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Id}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${WorkflowActionId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${ValueBuilderId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${Position} ) Process { 'Creating PSCustomObject: PSSailpoint.NERM => NERMLdapActionWorkflowActionValueBuildersAttributes' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "id" = ${Id} "workflow_action_id" = ${WorkflowActionId} "value_builder_id" = ${ValueBuilderId} "position" = ${Position} } return $PSO } } <# .SYNOPSIS Convert from JSON to LdapActionWorkflowActionValueBuildersAttributes<PSCustomObject> .DESCRIPTION Convert from JSON to LdapActionWorkflowActionValueBuildersAttributes<PSCustomObject> .PARAMETER Json Json object .OUTPUTS LdapActionWorkflowActionValueBuildersAttributes<PSCustomObject> #> function ConvertFrom-NERMJsonToLdapActionWorkflowActionValueBuildersAttributes { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.NERM => NERMLdapActionWorkflowActionValueBuildersAttributes' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in NERMLdapActionWorkflowActionValueBuildersAttributes $AllProperties = ("id", "workflow_action_id", "value_builder_id", "position") 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 "workflow_action_id"))) { #optional property not found $WorkflowActionId = $null } else { $WorkflowActionId = $JsonParameters.PSobject.Properties["workflow_action_id"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "value_builder_id"))) { #optional property not found $ValueBuilderId = $null } else { $ValueBuilderId = $JsonParameters.PSobject.Properties["value_builder_id"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "position"))) { #optional property not found $Position = $null } else { $Position = $JsonParameters.PSobject.Properties["position"].value } $PSO = [PSCustomObject]@{ "id" = ${Id} "workflow_action_id" = ${WorkflowActionId} "value_builder_id" = ${ValueBuilderId} "position" = ${Position} } return $PSO } } |