Skip to content

Commit af71ab0

Browse files
EmileCalebAlbers
Emile
authored andcommitted
Added missing filter parameter (#53)
* Added missing filter parameter filter[group_id] was missing from Get-ITGlueOrganizations, added the parameter and check. * Updated patch version one step
1 parent 928606d commit af71ab0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ITGlueAPI/ITGlueAPI.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RootModule = '.\ITGlueAPI.psm1'
1818
# -- MINOR version when you add functionality in a backwards-compatible manner, and
1919
# -- PATCH version when you make backwards-compatible bug fixes.
2020

21-
ModuleVersion = '2.0.4'
21+
ModuleVersion = '2.0.5'
2222

2323
# ID used to uniquely identify this module
2424
#GUID = ''

ITGlueAPI/Resources/Organizations.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ function Get-ITGlueOrganizations {
5050

5151
[Parameter(ParameterSetName = 'index')]
5252
[Nullable[Int64]]$filter_my_glue_account_id = $null,
53+
54+
[Parameter(ParameterSetName = 'index')]
55+
[Nullable[Int64]]$filter_group_id = $null,
5356

5457
[Parameter(ParameterSetName = 'index')]
5558
[Nullable[Int64]]$filter_exclude_id = $null,
@@ -110,6 +113,9 @@ function Get-ITGlueOrganizations {
110113
if ($filter_my_glue_account_id) {
111114
$body += @{'filter[my_glue_account_id]' = $filter_my_glue_account_id}
112115
}
116+
if ($filter_group_id) {
117+
$body += @{'filter[group_id]' = $filter_group_id}
118+
}
113119
if ($filter_exclude_id) {
114120
$body += @{'filter[exclude][id]' = $filter_exclude_id}
115121
}
@@ -358,4 +364,4 @@ function Remove-ITGlueOrganizations {
358364
$data = @{}
359365
$data = $rest_output
360366
return $data
361-
}
367+
}

0 commit comments

Comments
 (0)