Releases: webmd-health-services/ProGetAutomation
3.0.1
3.0.0
Upgrade Instructions
- The return value from
Get-ProGetAssetContent
is no longer an HTTP response object. Instead, the response content is
returned. Updated usages to handle the new return value. What gets returned depends on the content type of the uploaded
asset. Any file uploaded by a previous version of ProGetAutomation will come back as an array of bytes. Strings will
be returned as strings. - The
Set-ProGetAsset
function no longer sets the content type of assets toapplication/x-www-form-urlencoded
.
Instead, when uploading files using theFilePath
parameter, the content type is set toapplication/octet-stream
.
When uploading from a string using theContent
parameter, the content type is set totext/plain; charset=utf-8
. If
you want to customize the content type, use the newContentType
parameter. - Remove usages of
-ContentType Form
on calls toInvoke-ProGetRestMethod
. This is now the default behavior. - Replaces usages of
-ContentType Json
on calls toInvoke-ProGetRestMethod
with-AsJson
.
Breaking Changes
Get-ProGetAssetContent
now returns the actual content instead of an HTTP response object.
Changes
Set-ProGetAsset
no longer sets the content type of assets toapplication/x-www-form-urlencoded
.Set-ProGetAsset
sets the content type of uploaded files toapplication/octet-stream
.Set-ProGetAsset
sets the content type of uploaded strings totext/plain; charset=utf-8
.
Removed
- The
ContentType
parameter onInvoke-ProGetRestMethod
. Use the newAsJson
switch instead for usages of
-ContentType Json
and remove usages of-ContentType Form
entirely.
2.0.0
Upgrade Instructions
Updated Get-ProGetFeed
, New-ProGetFeed
, Test-ProGetFeed
, and Remove-ProGetFeed
functions to use ProGet's
Feed Management API instead of the native API.
Ensure that API keys/credentials used with those functions have appropriate access to manage feeds.
Update usages of objects returned by Get-ProGetFeed
and New-ProGetFeed
. Rename these properties:
Active_Indicator
➔active
AllowUnknownLicenses_Indicator
➔allowUnknownLicenses
Feed_Description
➔description
Feed_Name
➔name
FeedType_Name
➔feedType
Remove these properties:
AllowUnassessedVulnerabilities_Indicator
Cache_Connectors_Indicator
DropPath_Text
Feed_Id
FeedConfiguration_Xml
FeedGroup_Id
FeedPathOverride_Text
FeedState_Number
LastPackageUpdate_Date
LastSync_Date
PackageStoreConfiguration_Xml
ReplicationConfiguration_Xml
Replace usages of the ID
parameter on the Get-ProGetFeed
and Remove-ProGetFeed
functions to use Name
instead.
The ID
parameter was removed from those functions.
Remove usages of the Type
parameter on the Test-ProGetFeed
function. A feed's type is no longer needed to determine
if a feed exists. All feed names, regardless of type, must now be unique.
Make sure Delete
HTTP verbs are allowed to your instance of ProGet. The Remove-ProGetFeed
function now uses that
verb when deleting a feed.
Add -ErrorAction Ignore
to usages of Get-ProGetFeed
. That function now writes an error if a feed does not exist.
Add -Method Post
to usages of Invoke-ProGetRestMethod
that don't have a -Method
argument. The default value
changed to Get
from Post
.
Added
- The
Publish-ProGetUniversalPackage
function can now authenticate using a ProGet API key.
Changed
- The
Get-ProGetFeed
andNew-ProGetFeed
functions now use the Feed Management API. The objects returned have
different properties. Update usages. - The
Invoke-ProGetRestMethod
andInvoke-ProGetNativeApiMethod
now uses[Uri]::EscapeDataString([String])
to URL
encode query string values (instead of[Web.HttpUtility]::UrlEncode([String])
). - The
Remove-ProGetFeed
andTest-ProGetFeed
functions now use the Feed Management API instead of the native API. - The
Remove-ProGetFeed
function now uses the HTTPDelete
verb (instead of thePost
verb) when making the HTTP
request to delete a feed. - The
Get-ProGetFeed
function now writes an error if a feed does not exist. - The default value of the
Invoke-ProGetRestMethod
function'sMethod
parameter changed toGet
fromPost
.
Removed
Functionality
- Removed
charset
directive from theContent-Type
header value sent to ProGet because ProGet can't handle that
directive. - The
New-ProGetFeed
function no longer checks if the session has an API key. - The
Test-ProGetFeed
function no longer checks if the session has an API key.
Parameters
ID
on theGet-ProGetFeed
andRemove-ProGetFeed
functions. The Feed Management API doesn't supports feed IDs.
Pass the feed name to theName
parameter instead.Type
on functionTest-ProGetFeed
. All feeds, regardless of type, must now have a unique name.
1.1.0
Added
- Parameter
Url
to functionNew-ProGetSession
. This replaces theUri
parameter. We'll always use a URL to connect
to ProGet, since it's HTTP-based software. - Property
Url
on the ProGet session object. This replaces theUri
property. - Parameter
MaxRequestSize
to functionSet-ProGetAsset
. TheSet-ProGetAsset
function now uploads files in parts
to avoid surpassing web server max request content length restrictions. Set this parameter to a value lower than your
web server's maximum request content length. The default value is 30MB/28.6MiB (the IIS web server's default max
request content length).
Changed
Set-ProGetAsset
function now uploads files of any size.
Deprecated
- The
New-ProGetSession
function'sUri
parameter. Use the newUrl
parameter instead. - The
Uri
property on the ProGet session object. Us
1.0.0
0.10.2
0.10.1
0.10.0
0.9.0
0.8.0
Add-ProGetUniversalPackageFile
is now an order of magnitude faster, thanks to performance improvements to the underlying Zip module used to add files to a universal package.Add-ProGetUniversalPackageFile
now preserves file last write/modified date/times.- Fixed:
Add-ProGetUniversalPackageFile
function behaves improperly when part of a pipeline, causing a major performance problem. - Fix issue #7: the
Test-ProGetFeed
function ignores the feed's type, i.e. it always returns true if there is any feed with a given name, regardless of its type. - Renamed the
New-ProGetFeed
andTest-ProGetFeed
function'sFeedName
andFeedType
parameters toName
andType
.