Model/MachineaccountcreateaccessdtoSubtypesInner.ps1
|
# # Identity Security Cloud API - Machine Account Creation Request # 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: v1 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER SubtypeId Subtype ID. .PARAMETER EntitlementId Entitlement ID. .PARAMETER SubtypeDisplayName Subtype display name. .PARAMETER SubtypeTechnicalName Subtype technical name. .OUTPUTS MachineaccountcreateaccessdtoSubtypesInner<PSCustomObject> #> function Initialize-MachineaccountcreateaccessdtoSubtypesInner { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${SubtypeId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${EntitlementId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${SubtypeDisplayName}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${SubtypeTechnicalName} ) Process { 'Creating PSCustomObject: PSSailpoint.MachineAccountCreationRequest => MachineaccountcreateaccessdtoSubtypesInner' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "subtypeId" = ${SubtypeId} "entitlementId" = ${EntitlementId} "subtypeDisplayName" = ${SubtypeDisplayName} "subtypeTechnicalName" = ${SubtypeTechnicalName} } return $PSO } } <# .SYNOPSIS Convert from JSON to MachineaccountcreateaccessdtoSubtypesInner<PSCustomObject> .DESCRIPTION Convert from JSON to MachineaccountcreateaccessdtoSubtypesInner<PSCustomObject> .PARAMETER Json Json object .OUTPUTS MachineaccountcreateaccessdtoSubtypesInner<PSCustomObject> #> function ConvertFrom-JsonToMachineaccountcreateaccessdtoSubtypesInner { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.MachineAccountCreationRequest => MachineaccountcreateaccessdtoSubtypesInner' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in MachineaccountcreateaccessdtoSubtypesInner $AllProperties = ("subtypeId", "entitlementId", "subtypeDisplayName", "subtypeTechnicalName") 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 "subtypeId"))) { #optional property not found $SubtypeId = $null } else { $SubtypeId = $JsonParameters.PSobject.Properties["subtypeId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "entitlementId"))) { #optional property not found $EntitlementId = $null } else { $EntitlementId = $JsonParameters.PSobject.Properties["entitlementId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "subtypeDisplayName"))) { #optional property not found $SubtypeDisplayName = $null } else { $SubtypeDisplayName = $JsonParameters.PSobject.Properties["subtypeDisplayName"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "subtypeTechnicalName"))) { #optional property not found $SubtypeTechnicalName = $null } else { $SubtypeTechnicalName = $JsonParameters.PSobject.Properties["subtypeTechnicalName"].value } $PSO = [PSCustomObject]@{ "subtypeId" = ${SubtypeId} "entitlementId" = ${EntitlementId} "subtypeDisplayName" = ${SubtypeDisplayName} "subtypeTechnicalName" = ${SubtypeTechnicalName} } return $PSO } } |