Get-BirdWeatherRESTUriParameter
SYNOPSIS
Gets the query string or request body parameters from a public function
SYNTAX
__AllParameterSets
Get-BirdWeatherRESTUriParameter [-BoundParameter] <hashtable> [[-Exclude] <string[]>]
[[-Include] <string[]>] [[-NameMap] <hashtable>]
ALIASES
This cmdlet has the following aliases,
- Get-BWRUriParameter
DESCRIPTION
The Get-BirdWeatherRESTUriParameter cmdlet filters the bound parameters of a public function down to only the ones that are sent as query string parameters or as request body properties
PowerShell common parameters, module switches (AllResults & Raw), and any parameter used elsewhere in the request (such as path parameters) are removed
This is an internal helper function that is used by all public functions
EXAMPLES
EXAMPLE 1
Get-BirdWeatherRESTUriParameter -BoundParameter $PSBoundParameters -Exclude 'Token'
Returns a hashtable of all bound parameters except common parameters & Token
EXAMPLE 2
Get-BirdWeatherRESTUriParameter -BoundParameter $PSBoundParameters -Include 'CommonName', 'Lat'
Returns a hashtable with only the CommonName & Lat parameters, sent as commonName & lat
PARAMETERS
-BoundParameter
The $PSBoundParameters hashtable of the calling function
Type: System.Collections.Hashtable
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Exclude
Names of parameters that are not sent
Type: System.String[]
DefaultValue: '@()'
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Include
Names of the only parameters that are sent
When defined, every other parameter is ignored
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-NameMap
Hashtable that maps a PowerShell parameter name to the API parameter name
Parameters that are not in the NameMap are sent to the API with the first letter in lower case Example: The SpeciesId parameter is sent as speciesId
Type: System.Collections.Hashtable
DefaultValue: '@{}'
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 3
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
System.Collections.Hashtable
NOTES
N/A