-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance Filters (Invoke-FGTRestMethod) #95
base: master
Are you sure you want to change the base?
Conversation
notequal, notcontains, less, lessorequal, greater, greaterorequal added. Non-working parameterset fixed. Old Syntax output: SYNTAX Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-filter <String>] [-filter_attribute <String>] [-filter_type <String>] [-filter_value <PSObject>] [-connection <PSObject>] [<CommonParameters>] Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-filter <String>] [-filter_attribute <String>] [-filter_type <String>] [-filter_value <PSObject>] [-connection <PSObject>] [<CommonParameters>] Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-filter <String>] [-filter_attribute <String>] [-filter_type <String>] [-filter_value <PSObject>] [-connection <PSObject>] [<CommonParameters>] New Syntax output: SYNTAX Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-connection <PSObject>] [<CommonParameters>] Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-filter <String>] [-connection <PSObject>] [<CommonParameters>] Invoke-FGTRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-skip] [-vdom <String[]>] [-filter_attribute <String>] [-filter_type <String>] [-filter_value <PSObject>] [-connection <PSObject>] [<CommonParameters>]
Hi Arthur, Thanks, All Filter work ?! Yes, it is strange for filter... (i really need to add some test...) |
Yeah tested them all. they all seem to work.
|
Thanks, i will check ! |
[Parameter (Mandatory = $false)] | ||
[Parameter (ParameterSetName = "filter")] | ||
[Parameter(Mandatory = $false, ParameterSetName = "filter")] | ||
[String]$filter, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't really like the idea to have directly filter parameter.. but prefer we can build filter with filter_type, attribute...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oke i will remove it. Advanced searches can be done with invoke-FGTRestMothode if needed. is the parameter name-change (filter -> filter_build) oke? This will make it consistant with Invoke-FGTRestMethode. If not i will change it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok for change ParameterName
Thanks Arthur, can you add name of file on commit message ? for example (or make a big commit with all change) |
Will do next time. I made the same change in all file. Don't know how to do this in one commit.
…________________________________
Van: Alexis La Goutte <[email protected]>
Verzonden: dinsdag 14 april 2020 08:16
Aan: FortiPower/PowerFGT <[email protected]>
CC: Arthur Heijnen <[email protected]>; Author <[email protected]>
Onderwerp: Re: [FortiPower/PowerFGT] Enhance Filters (Invoke-FGTRestMethod) (#95)
Thanks Arthur, can you add name of file on commit message ?
ippool: Fixed ParameterSets and added filter types
for example (or make a big commit with all change)
it is very strange, i don't work if you set the parametername outside of first Parameter
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#95 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABQAF77EKVSLJIWBZW4KOJDRMQLVFANCNFSM4MFJYI7A>.
|
What tools do you are using for git ? only need to make a git add of all file (or use git commit -a) after make change all files (you can also use git rebase -i master and reword/squash/fixup and after need to make a git push -f for force) |
Copy past in webbrowser :-( I've got github desktop installed. will check the howto.
…________________________________
Van: Alexis La Goutte <[email protected]>
Verzonden: dinsdag 14 april 2020 08:56
Aan: FortiPower/PowerFGT <[email protected]>
CC: Arthur Heijnen <[email protected]>; Author <[email protected]>
Onderwerp: Re: [FortiPower/PowerFGT] Enhance Filters (Invoke-FGTRestMethod) (#95)
What tools do you are using for git ?
only need to make a git add of all file (or use git commit -a) after make change all files
(you can also use git rebase -i master and reword/squash/fixup and after need to make a git push -f for force)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#95 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABQAF743VQ3NGDKMFAVPVSDRMQQNRANCNFSM4MFJYI7A>.
|
|
Hi sorry guys but busy for the moment for work on PowerFGT (need to finish 2 other module) I can help you, if you need for git skill |
Hi Arthur you can kept open it is always on my todo (but no really in the top !) |
There was something wrong with the parameter sets. Somehow they need to be on the same line as "mandatory", else all options are visible in every parameterset.
Also added the remaining filter type's (because i needed them).