beta/src/PSSailpointBeta/Model/SubscriptionPutRequest.ps1
# # IdentityNow Beta API # Use these APIs to interact with the IdentityNow 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 Name Subscription name. .PARAMETER Description Subscription description. .PARAMETER Type No description available. .PARAMETER ResponseDeadline Deadline for completing REQUEST_RESPONSE trigger invocation, represented in ISO-8601 duration format. .PARAMETER HttpConfig No description available. .PARAMETER EventBridgeConfig No description available. .PARAMETER Enabled Whether subscription should receive real-time trigger invocations or not. Test trigger invocations are always enabled regardless of this option. .PARAMETER VarFilter JSONPath filter to conditionally invoke trigger when expression evaluates to true. .OUTPUTS SubscriptionPutRequest<PSCustomObject> #> function Initialize-BetaSubscriptionPutRequest { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String] ${Name}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)] [String] ${Description}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)] [ValidateSet("HTTP", "EVENTBRIDGE")] [PSCustomObject] ${Type}, [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)] [String] ${ResponseDeadline} = "PT1H", [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${HttpConfig}, [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${EventBridgeConfig}, [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${Enabled} = $true, [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)] [String] ${VarFilter} ) Process { 'Creating PSCustomObject: PSSailpointBeta => BetaSubscriptionPutRequest' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "name" = ${Name} "description" = ${Description} "type" = ${Type} "responseDeadline" = ${ResponseDeadline} "httpConfig" = ${HttpConfig} "eventBridgeConfig" = ${EventBridgeConfig} "enabled" = ${Enabled} "filter" = ${VarFilter} } return $PSO } } <# .SYNOPSIS Convert from JSON to SubscriptionPutRequest<PSCustomObject> .DESCRIPTION Convert from JSON to SubscriptionPutRequest<PSCustomObject> .PARAMETER Json Json object .OUTPUTS SubscriptionPutRequest<PSCustomObject> #> function ConvertFrom-BetaJsonToSubscriptionPutRequest { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpointBeta => BetaSubscriptionPutRequest' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in BetaSubscriptionPutRequest $AllProperties = ("name", "description", "type", "responseDeadline", "httpConfig", "eventBridgeConfig", "enabled", "filter") 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 "name"))) { #optional property not found $Name = $null } else { $Name = $JsonParameters.PSobject.Properties["name"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "description"))) { #optional property not found $Description = $null } else { $Description = $JsonParameters.PSobject.Properties["description"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "type"))) { #optional property not found $Type = $null } else { $Type = $JsonParameters.PSobject.Properties["type"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "responseDeadline"))) { #optional property not found $ResponseDeadline = $null } else { $ResponseDeadline = $JsonParameters.PSobject.Properties["responseDeadline"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "httpConfig"))) { #optional property not found $HttpConfig = $null } else { $HttpConfig = $JsonParameters.PSobject.Properties["httpConfig"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "eventBridgeConfig"))) { #optional property not found $EventBridgeConfig = $null } else { $EventBridgeConfig = $JsonParameters.PSobject.Properties["eventBridgeConfig"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "enabled"))) { #optional property not found $Enabled = $null } else { $Enabled = $JsonParameters.PSobject.Properties["enabled"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "filter"))) { #optional property not found $VarFilter = $null } else { $VarFilter = $JsonParameters.PSobject.Properties["filter"].value } $PSO = [PSCustomObject]@{ "name" = ${Name} "description" = ${Description} "type" = ${Type} "responseDeadline" = ${ResponseDeadline} "httpConfig" = ${HttpConfig} "eventBridgeConfig" = ${EventBridgeConfig} "enabled" = ${Enabled} "filter" = ${VarFilter} } return $PSO } } |