VaporShell.InspectorV2.Classes.ps1
using namespace System using namespace System.Collections using namespace System.Collections.Generic using namespace System.IO using namespace System.Management.Automation [CmdletBinding()] Param() Write-Verbose "Importing class 'InspectorV2FilterNumberFilter'" class InspectorV2FilterNumberFilter : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSInspectorV2FilterNumberFilter' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-numberfilter.html' hidden [object] $_lowerInclusive hidden [object] $_upperInclusive [double] $LowerInclusive [double] $UpperInclusive hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name LowerInclusive -Value { $this._lowerInclusive } -SecondValue { param([ValidateType(([double], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._lowerInclusive = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name UpperInclusive -Value { $this._upperInclusive } -SecondValue { param([ValidateType(([double], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._upperInclusive = $value } } InspectorV2FilterNumberFilter() : base() {} InspectorV2FilterNumberFilter([IDictionary] $props) : base($props) {} InspectorV2FilterNumberFilter([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'InspectorV2FilterPortRangeFilter'" class InspectorV2FilterPortRangeFilter : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSInspectorV2FilterPortRangeFilter' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-portrangefilter.html' hidden [object] $_beginInclusive hidden [object] $_endInclusive [int] $BeginInclusive [int] $EndInclusive hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name BeginInclusive -Value { $this._beginInclusive } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._beginInclusive = if ($cast = $value -as [int]) { $cast } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name EndInclusive -Value { $this._endInclusive } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._endInclusive = if ($cast = $value -as [int]) { $cast } else { $value } } } InspectorV2FilterPortRangeFilter() : base() {} InspectorV2FilterPortRangeFilter([IDictionary] $props) : base($props) {} InspectorV2FilterPortRangeFilter([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'InspectorV2FilterPackageFilter'" class InspectorV2FilterPackageFilter : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSInspectorV2FilterPackageFilter' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-packagefilter.html' hidden [object] $_architecture hidden [object] $_epoch hidden [object] $_name hidden [object] $_release hidden [object] $_sourceLayerHash hidden [object] $_version [InspectorV2FilterStringFilter] $Architecture [InspectorV2FilterNumberFilter] $Epoch [InspectorV2FilterStringFilter] $Name [InspectorV2FilterStringFilter] $Release [InspectorV2FilterStringFilter] $SourceLayerHash [InspectorV2FilterStringFilter] $Version hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name Architecture -Value { $this._architecture } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._architecture = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Epoch -Value { $this._epoch } -SecondValue { param([ValidateType(([InspectorV2FilterNumberFilter], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._epoch = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Name -Value { $this._name } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._name = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Release -Value { $this._release } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._release = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name SourceLayerHash -Value { $this._sourceLayerHash } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._sourceLayerHash = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Version -Value { $this._version } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._version = $value } } InspectorV2FilterPackageFilter() : base() {} InspectorV2FilterPackageFilter([IDictionary] $props) : base($props) {} InspectorV2FilterPackageFilter([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'InspectorV2FilterStringFilter'" class InspectorV2FilterStringFilter : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSInspectorV2FilterStringFilter' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-stringfilter.html' hidden [object] $_comparison hidden [object] $_value [string] $Comparison [string] $Value hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name Comparison -Value { $this._comparison } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._comparison = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name Value -Value { $this._value } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._value = if ($value -is [int]) { $value.ToString() } else { $value } } } InspectorV2FilterStringFilter() : base() {} InspectorV2FilterStringFilter([IDictionary] $props) : base($props) {} InspectorV2FilterStringFilter([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'InspectorV2FilterFilterCriteria'" class InspectorV2FilterFilterCriteria : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSInspectorV2FilterFilterCriteria' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html' hidden [object] $_awsAccountId hidden [object] $_componentId hidden [object] $_componentType hidden [object] $_ec2InstanceImageId hidden [object] $_ec2InstanceSubnetId hidden [object] $_ec2InstanceVpcId hidden [object] $_ecrImageArchitecture hidden [object] $_ecrImageHash hidden [object] $_ecrImageTags hidden [object] $_ecrImagePushedAt hidden [object] $_ecrImageRegistry hidden [object] $_ecrImageRepositoryName hidden [object] $_findingArn hidden [object] $_findingStatus hidden [object] $_findingType hidden [object] $_firstObservedAt hidden [object] $_inspectorScore hidden [object] $_lastObservedAt hidden [object] $_networkProtocol hidden [object] $_portRange hidden [object] $_relatedVulnerabilities hidden [object] $_resourceId hidden [object] $_resourceTags hidden [object] $_resourceType hidden [object] $_severity hidden [object] $_title hidden [object] $_updatedAt hidden [object] $_vendorSeverity hidden [object] $_vulnerabilityId hidden [object] $_vulnerabilitySource hidden [object] $_vulnerablePackages [InspectorV2FilterStringFilter[]] $AwsAccountId [InspectorV2FilterStringFilter[]] $ComponentId [InspectorV2FilterStringFilter[]] $ComponentType [InspectorV2FilterStringFilter[]] $Ec2InstanceImageId [InspectorV2FilterStringFilter[]] $Ec2InstanceSubnetId [InspectorV2FilterStringFilter[]] $Ec2InstanceVpcId [InspectorV2FilterStringFilter[]] $EcrImageArchitecture [InspectorV2FilterStringFilter[]] $EcrImageHash [InspectorV2FilterStringFilter[]] $EcrImageTags [InspectorV2FilterDateFilter[]] $EcrImagePushedAt [InspectorV2FilterStringFilter[]] $EcrImageRegistry [InspectorV2FilterStringFilter[]] $EcrImageRepositoryName [InspectorV2FilterStringFilter[]] $FindingArn [InspectorV2FilterStringFilter[]] $FindingStatus [InspectorV2FilterStringFilter[]] $FindingType [InspectorV2FilterDateFilter[]] $FirstObservedAt [InspectorV2FilterNumberFilter[]] $InspectorScore [InspectorV2FilterDateFilter[]] $LastObservedAt [InspectorV2FilterStringFilter[]] $NetworkProtocol [InspectorV2FilterPortRangeFilter[]] $PortRange [InspectorV2FilterStringFilter[]] $RelatedVulnerabilities [InspectorV2FilterStringFilter[]] $ResourceId [InspectorV2FilterMapFilter[]] $ResourceTags [InspectorV2FilterStringFilter[]] $ResourceType [InspectorV2FilterStringFilter[]] $Severity [InspectorV2FilterStringFilter[]] $Title [InspectorV2FilterDateFilter[]] $UpdatedAt [InspectorV2FilterStringFilter[]] $VendorSeverity [InspectorV2FilterStringFilter[]] $VulnerabilityId [InspectorV2FilterStringFilter[]] $VulnerabilitySource [InspectorV2FilterPackageFilter[]] $VulnerablePackages hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name AwsAccountId -Value { $this._awsAccountId } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._awsAccountId = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name ComponentId -Value { $this._componentId } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._componentId = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name ComponentType -Value { $this._componentType } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._componentType = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Ec2InstanceImageId -Value { $this._ec2InstanceImageId } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._ec2InstanceImageId = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Ec2InstanceSubnetId -Value { $this._ec2InstanceSubnetId } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._ec2InstanceSubnetId = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Ec2InstanceVpcId -Value { $this._ec2InstanceVpcId } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._ec2InstanceVpcId = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name EcrImageArchitecture -Value { $this._ecrImageArchitecture } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._ecrImageArchitecture = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name EcrImageHash -Value { $this._ecrImageHash } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._ecrImageHash = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name EcrImageTags -Value { $this._ecrImageTags } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._ecrImageTags = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name EcrImagePushedAt -Value { $this._ecrImagePushedAt } -SecondValue { param([ValidateType(([InspectorV2FilterDateFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._ecrImagePushedAt = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name EcrImageRegistry -Value { $this._ecrImageRegistry } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._ecrImageRegistry = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name EcrImageRepositoryName -Value { $this._ecrImageRepositoryName } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._ecrImageRepositoryName = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name FindingArn -Value { $this._findingArn } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._findingArn = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name FindingStatus -Value { $this._findingStatus } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._findingStatus = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name FindingType -Value { $this._findingType } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._findingType = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name FirstObservedAt -Value { $this._firstObservedAt } -SecondValue { param([ValidateType(([InspectorV2FilterDateFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._firstObservedAt = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name InspectorScore -Value { $this._inspectorScore } -SecondValue { param([ValidateType(([InspectorV2FilterNumberFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._inspectorScore = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name LastObservedAt -Value { $this._lastObservedAt } -SecondValue { param([ValidateType(([InspectorV2FilterDateFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._lastObservedAt = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name NetworkProtocol -Value { $this._networkProtocol } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._networkProtocol = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name PortRange -Value { $this._portRange } -SecondValue { param([ValidateType(([InspectorV2FilterPortRangeFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._portRange = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name RelatedVulnerabilities -Value { $this._relatedVulnerabilities } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._relatedVulnerabilities = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceId -Value { $this._resourceId } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._resourceId = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceTags -Value { $this._resourceTags } -SecondValue { param([ValidateType(([InspectorV2FilterMapFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._resourceTags = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceType -Value { $this._resourceType } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._resourceType = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Severity -Value { $this._severity } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._severity = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Title -Value { $this._title } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._title = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name UpdatedAt -Value { $this._updatedAt } -SecondValue { param([ValidateType(([InspectorV2FilterDateFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._updatedAt = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name VendorSeverity -Value { $this._vendorSeverity } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._vendorSeverity = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name VulnerabilityId -Value { $this._vulnerabilityId } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._vulnerabilityId = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name VulnerabilitySource -Value { $this._vulnerabilitySource } -SecondValue { param([ValidateType(([InspectorV2FilterStringFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._vulnerabilitySource = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name VulnerablePackages -Value { $this._vulnerablePackages } -SecondValue { param([ValidateType(([InspectorV2FilterPackageFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this._vulnerablePackages = $value } } InspectorV2FilterFilterCriteria() : base() {} InspectorV2FilterFilterCriteria([IDictionary] $props) : base($props) {} InspectorV2FilterFilterCriteria([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'InspectorV2FilterDateFilter'" class InspectorV2FilterDateFilter : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSInspectorV2FilterDateFilter' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-datefilter.html' hidden [object] $_endInclusive hidden [object] $_startInclusive [int] $EndInclusive [int] $StartInclusive hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name EndInclusive -Value { $this._endInclusive } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._endInclusive = if ($cast = $value -as [int]) { $cast } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name StartInclusive -Value { $this._startInclusive } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._startInclusive = if ($cast = $value -as [int]) { $cast } else { $value } } } InspectorV2FilterDateFilter() : base() {} InspectorV2FilterDateFilter([IDictionary] $props) : base($props) {} InspectorV2FilterDateFilter([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'InspectorV2FilterMapFilter'" class InspectorV2FilterMapFilter : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSInspectorV2FilterMapFilter' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-mapfilter.html' hidden [object] $_comparison hidden [object] $_key hidden [object] $_value [string] $Comparison [string] $Key [string] $Value hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name Comparison -Value { $this._comparison } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._comparison = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name Key -Value { $this._key } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._key = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name Value -Value { $this._value } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._value = if ($value -is [int]) { $value.ToString() } else { $value } } } InspectorV2FilterMapFilter() : base() {} InspectorV2FilterMapFilter([IDictionary] $props) : base($props) {} InspectorV2FilterMapFilter([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'InspectorV2Filter'" class InspectorV2Filter : VSResource { hidden [string] $_vsFunctionName = 'New-VSInspectorV2Filter' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-filter.html' hidden [string[]] $_attributes = @('Arn') hidden [object] $_condition [string] $Type = 'AWS::InspectorV2::Filter' [string] $Name [string] $Description [InspectorV2FilterFilterCriteria] $FilterCriteria [string] $FilterAction [VSJson] $Metadata [UpdatePolicy] $UpdatePolicy [string] $Condition hidden [void] _addAccessors() { $this._addBaseAccessors() $this | Add-Member -Force -MemberType ScriptProperty -Name Name -Value { $this.Properties['Name'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['Name'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name Description -Value { $this.Properties['Description'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['Description'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name FilterCriteria -Value { $this.Properties['FilterCriteria'] } -SecondValue { param([ValidateType(([InspectorV2FilterFilterCriteria], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['FilterCriteria'] = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name FilterAction -Value { $this.Properties['FilterAction'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['FilterAction'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value { $this._condition } -SecondValue { param( [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object] $value ) $this._condition = $value } } InspectorV2Filter() : base() {} InspectorV2Filter([IDictionary] $props) : base($props) {} InspectorV2Filter([psobject] $props) : base($props) {} } |