Skip to content

Commit

Permalink
[DPS-5914] Added filter match options
Browse files Browse the repository at this point in the history
Contains, starts with, ends with, exact expression
  • Loading branch information
AlexMartigny committed Mar 28, 2022
1 parent 45172f5 commit 0c0b298
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ function Get-DSEntry {
[Parameter(ParameterSetName = 'Filter')]
[ValidateSet('Name', 'Username', 'Folder', 'Description', 'Keywords', ErrorMessage = 'Filtering by {0} is not yet supported. Please use one of the following filters: {1}')]
[SearchItemType]$FilterBy = [SearchItemType]::Name,
[Parameter(ParameterSetName = 'Filter')]
[ValidateSet('Contains', 'StartsWith', 'EndsWith', 'ExactExpression', ErrorMessage = 'Filtering by {0} is not yet supported. Please use one of the following filters: {1}')]
[SearchItemText]$FilterMatch = [SearchItemText]::Contains,

[Parameter(ParameterSetName = 'GetPage')]
[int]$PageSize = 25,
Expand Down Expand Up @@ -169,8 +172,9 @@ function GetByFilter {
searchParameters = @{
data = @(
@{
searchItemType = $FilterBy
value = $FilterValue
searchItemType = $FilterBy
value = $FilterValue
expressionOption = $FilterMatch
}
)
includePrivateVault = $false
Expand Down

0 comments on commit 0c0b298

Please sign in to comment.