-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from AzCiS/parvezah
The formatting files for Get Task
- Loading branch information
Showing
4 changed files
with
124 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
...t/StorSimple/Commands.StorSimple/Microsoft.WindowsAzure.Commands.StorSimple.format.ps1xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Configuration> | ||
<ViewDefinitions> | ||
<View> | ||
<Name>Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStatusInfo</Name> | ||
<ViewSelectedBy> | ||
<TypeName>Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStatusInfo</TypeName> | ||
</ViewSelectedBy> | ||
<TableControl> | ||
<TableHeaders> | ||
<TableColumnHeader> | ||
<Label>InstanceId</Label> | ||
<Width>36</Width> | ||
</TableColumnHeader> | ||
<TableColumnHeader> | ||
<Label>Result</Label> | ||
<Width>16</Width> | ||
</TableColumnHeader> | ||
<TableColumnHeader> | ||
<Label>Steps</Label> | ||
</TableColumnHeader> | ||
<TableColumnHeader> | ||
<Label>Errors</Label> | ||
</TableColumnHeader> | ||
</TableHeaders> | ||
<TableRowEntries> | ||
<TableRowEntry> | ||
<Wrap/> | ||
<TableColumnItems> | ||
<TableColumnItem> | ||
<PropertyName>TaskId</PropertyName> | ||
</TableColumnItem> | ||
<TableColumnItem> | ||
<PropertyName>AsyncTaskAggregatedResult</PropertyName> | ||
</TableColumnItem> | ||
<TableColumnItem> | ||
<ScriptBlock>$_.GetSteps</ScriptBlock> | ||
</TableColumnItem> | ||
<TableColumnItem> | ||
<ScriptBlock>$_.GetErrors</ScriptBlock> | ||
</TableColumnItem> | ||
</TableColumnItems> | ||
</TableRowEntry> | ||
</TableRowEntries> | ||
</TableControl> | ||
</View> | ||
<View> | ||
<Name>Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStep</Name> | ||
<ViewSelectedBy> | ||
<TypeName>Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStep</TypeName> | ||
</ViewSelectedBy> | ||
<TableControl> | ||
<TableHeaders> | ||
<TableColumnHeader> | ||
<Label>Message</Label> | ||
</TableColumnHeader> | ||
</TableHeaders> | ||
<TableRowEntries> | ||
<TableRowEntry> | ||
<TableColumnItems> | ||
<TableColumnItem> | ||
<PropertyName>Message</PropertyName> | ||
</TableColumnItem> | ||
</TableColumnItems> | ||
</TableRowEntry> | ||
</TableRowEntries> | ||
</TableControl> | ||
</View> | ||
<View> | ||
<Name>Microsoft.WindowsAzure.Management.StorSimple.Models.ErrorDetails</Name> | ||
<ViewSelectedBy> | ||
<TypeName>Microsoft.WindowsAzure.Management.StorSimple.Models.ErrorDetails</TypeName> | ||
</ViewSelectedBy> | ||
<TableControl> | ||
<TableHeaders> | ||
<TableColumnHeader> | ||
<Label>Message</Label> | ||
</TableColumnHeader> | ||
<TableColumnHeader> | ||
<Label>Code</Label> | ||
</TableColumnHeader> | ||
</TableHeaders> | ||
<TableRowEntries> | ||
<TableRowEntry> | ||
<TableColumnItems> | ||
<TableColumnItem> | ||
<PropertyName>Message</PropertyName> | ||
</TableColumnItem> | ||
<TableColumnItem> | ||
<PropertyName>Code</PropertyName> | ||
</TableColumnItem> | ||
</TableColumnItems> | ||
</TableRowEntry> | ||
</TableRowEntries> | ||
</TableControl> | ||
</View> | ||
</ViewDefinitions> | ||
</Configuration> |
16 changes: 16 additions & 0 deletions
16
...nt/StorSimple/Commands.StorSimple/Microsoft.WindowsAzure.Commands.StorSimple.types.ps1xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Types> | ||
<Type> | ||
<Name>Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStatusInfo</Name> | ||
<Members> | ||
<ScriptProperty> | ||
<Name>GetSteps</Name> | ||
<GetScriptBlock>if( ($_.TaskSteps | Select Message -ExpandProperty Message) -ne $null ) { [string]::Join(" `n", ($_.TaskSteps | Select -ExpandProperty Message)) } else { "No Steps" }</GetScriptBlock> | ||
</ScriptProperty> | ||
<ScriptProperty> | ||
<Name>GetErrors</Name> | ||
<GetScriptBlock>if( ($_.Error | Select Message -ExpandProperty Message) -ne $null ) { [string]::Join(" `n", ($_.Error | Select -ExpandProperty Message)) } else { "No Errors" }</GetScriptBlock> | ||
</ScriptProperty> | ||
</Members> | ||
</Type> | ||
</Types> |