Skip to content

Commit 3eee110

Browse files
Updating types definitions
1 parent 954cb91 commit 3eee110

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

PSDevOps.types.ps1xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,15 @@
200200
<Type>
201201
<Name>PSDevOps.Build.Artifact</Name>
202202
<Members>
203+
<ScriptMethod>
204+
<Name>Download</Name>
205+
<Script>
206+
if ($this.resource.downloadUrl) {
207+
Invoke-ADORestAPI -Uri $this.resource.downloadURL -AsByte
208+
}
209+
210+
</Script>
211+
</ScriptMethod>
203212
<ScriptProperty>
204213
<Name>ArtifactData</Name>
205214
<GetScriptBlock>
@@ -219,6 +228,15 @@
219228
<Type>
220229
<Name>Deserialized.PSDevOps.Build.Artifact</Name>
221230
<Members>
231+
<ScriptMethod>
232+
<Name>Download</Name>
233+
<Script>
234+
if ($this.resource.downloadUrl) {
235+
Invoke-ADORestAPI -Uri $this.resource.downloadURL -AsByte
236+
}
237+
238+
</Script>
239+
</ScriptMethod>
222240
<ScriptProperty>
223241
<Name>ArtifactData</Name>
224242
<GetScriptBlock>

0 commit comments

Comments
 (0)