Skip to content

Commit 30ad7e6

Browse files
committed
move string query generation to private
1 parent 44b6f7c commit 30ad7e6

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

ServiceNow/Public/New-ServiceNowQuery.ps1 renamed to ServiceNow/Private/New-ServiceNowQuery.ps1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1+
<#
2+
.SYNOPSIS
3+
Build query string for api call
4+
.DESCRIPTION
5+
Build query string for api call
6+
.EXAMPLE
7+
New-ServiceNowQuery -MatchExact @{field_name=value}
8+
Get query string where field name exactly matches the value
9+
.EXAMPLE
10+
New-ServiceNowQuery -MatchContains @{field_name=value}
11+
Get query string where field name contains the value
12+
.INPUTS
13+
None
14+
.OUTPUTS
15+
String
16+
#>
117
function New-ServiceNowQuery{
218

19+
[CmdletBinding()]
20+
[OutputType([System.String])]
21+
322
param(
423
# Machine name of the field to order by
524
[parameter(mandatory=$false)]

ServiceNow/ServiceNow.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ FormatsToProcess = @('ServiceNow.format.ps1xml')
6666
NestedModules = @()
6767

6868
# Functions to export from this module
69-
FunctionsToExport = @('Get-ServiceNowChangeRequest','Get-ServiceNowConfigurationItem','Get-ServiceNowIncident','Get-ServiceNowRequest','Get-ServiceNowTable','Get-ServiceNowTableEntry','Get-ServiceNowUser','Get-ServiceNowUserGroup','New-ServiceNowIncident','New-ServiceNowQuery','New-ServiceNowTableEntry','Remove-ServiceNowAuth','Remove-ServiceNowTableEntry','Set-ServiceNowAuth','Test-ServiceNowAuthIsSet','Update-ServiceNowChangeRequest','Update-ServiceNowIncident','Update-ServiceNowNumber','Update-ServiceNowTableEntry')
69+
FunctionsToExport = @('Get-ServiceNowChangeRequest','Get-ServiceNowConfigurationItem','Get-ServiceNowIncident','Get-ServiceNowRequest','Get-ServiceNowTable','Get-ServiceNowTableEntry','Get-ServiceNowUser','Get-ServiceNowUserGroup','New-ServiceNowIncident','New-ServiceNowTableEntry','Remove-ServiceNowAuth','Remove-ServiceNowTableEntry','Set-ServiceNowAuth','Test-ServiceNowAuthIsSet','Update-ServiceNowChangeRequest','Update-ServiceNowIncident','Update-ServiceNowNumber','Update-ServiceNowTableEntry')
7070

7171
# List of all modules packaged with this module
7272
# ModuleList = @()

0 commit comments

Comments
 (0)