You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
All exposed functions should accept pipeline input. In order to accomplish this the traditional Powershell way, objects in the pipeline should have the properties expected by the funtions being piped to, however the API returns objects one level higher than that. Changing this output would be a major breaking change, and should be considered very carefully.
There are two options:
1) Leave output alone and simply query one level deep before piping:
Could take advantage of pipeline parallelism to improve performance on longer queries
Disadvantages:
Major breaking change. Any scripts that use syntax like $Query.Machines to retrieve objects would need to be re-written to simply use $Query. This would apply to all endpoints.
Note Properties Count and Warnings would not be returned with the request, although traditional count methods would still be easily usable. (.count , | Measure-Object, etc.)
I'm leaning towards a phased approach, i.e. enabling pipeline input like in option 1, so as not to break anything, then at some point in the future, simply making the switch to v2 after a warning has been out for a while.
The text was updated successfully, but these errors were encountered:
All exposed functions should accept pipeline input. In order to accomplish this the traditional Powershell way, objects in the pipeline should have the properties expected by the funtions being piped to, however the API returns objects one level higher than that. Changing this output would be a major breaking change, and should be considered very carefully.
There are two options:
1) Leave output alone and simply query one level deep before piping:
Advantages:
Disadvantages:
2) Format output to remove top-level parameters Count and Warning, and only return results:
Advantages:
Disadvantages:
$Query.Machines
to retrieve objects would need to be re-written to simply use$Query
. This would apply to all endpoints.Count
andWarnings
would not be returned with the request, although traditional count methods would still be easily usable. (.count , | Measure-Object
, etc.)I'm leaning towards a phased approach, i.e. enabling pipeline input like in option 1, so as not to break anything, then at some point in the future, simply making the switch to v2 after a warning has been out for a while.
The text was updated successfully, but these errors were encountered: