Skip to content

Commit a3f8245

Browse files
authored
Merge pull request Azure#21 from viananth/AzureStack
Add format files for Gallery
2 parents 7859233 + 3d811dc commit a3f8245

File tree

3 files changed

+123
-2
lines changed

3 files changed

+123
-2
lines changed

src/StackAdmin/Azs.Gallery.Admin/Module/Azs.Gallery.Admin/Azs.Gallery.Admin.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ Licensed under the MIT License. See License.txt in the project root for license
6565
# ScriptsToProcess = @()
6666

6767
# Type files (.ps1xml) to be loaded when importing this module
68-
# TypesToProcess = @()
68+
TypesToProcess = @('Generated.PowerShell.Commands\FormatFiles\Azs.Gallery.Admin.Type.ps1xml')
6969

7070
# Format files (.ps1xml) to be loaded when importing this module
71-
# FormatsToProcess = @()
71+
FormatsToProcess = @('Generated.PowerShell.Commands\FormatFiles\Azs.Gallery.Admin.Format.ps1xml')
7272

7373
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
7474
NestedModules = @()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
//
4+
// Copyright (c) Microsoft and contributors. All rights reserved.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
//
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
-->
19+
<Configuration>
20+
<ViewDefinitions></ViewDefinitions>
21+
</Configuration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
//
4+
// Copyright (c) Microsoft and contributors. All rights reserved.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
//
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
-->
19+
<Types>
20+
<Type>
21+
<Name>Microsoft.AzureStack.Management.Gallery.Admin.Models.GalleryItemPropertiesIconFileUris</Name>
22+
<Members>
23+
<ScriptMethod>
24+
<Name>ToString</Name>
25+
<Script>
26+
$this | % {
27+
if ($null -ne $_.Small) { $_.Small + "`n" }
28+
if ($null -ne $_.Medium) { $_.Medium + "`n" }
29+
if ($null -ne $_.Large) { $_.Large + "`n" }
30+
if ($null -ne $_.Wide) { $_.Wide + "`n" }
31+
if ($null -ne $_.Hero) { $_.Hero + "`n" }
32+
}
33+
</Script>
34+
</ScriptMethod>
35+
</Members>
36+
</Type>
37+
<Type>
38+
<Name>Microsoft.AzureStack.Management.Gallery.Admin.Models.OpenProperty</Name>
39+
<Members>
40+
<ScriptMethod>
41+
<Name>ToString</Name>
42+
<Script>
43+
$result = ""
44+
if($this.Properties.Keys -ne $null) {
45+
$result += "Keys=$($this.Properties.Keys) "
46+
}
47+
if($this.Properties.Values -ne $null) {
48+
$result += "Values=$($this.Properties.Values)"
49+
}
50+
51+
$result -replace " $",""
52+
</Script>
53+
</ScriptMethod>
54+
</Members>
55+
</Type>
56+
<Type>
57+
<Name>Microsoft.AzureStack.Management.Gallery.Admin.Models.ImageGroup</Name>
58+
<Members>
59+
<ScriptMethod>
60+
<Name>ToString</Name>
61+
<Script>
62+
$result = ""
63+
if($this.Context -ne $null) {
64+
$result += "Context=$($this.Context) "
65+
}
66+
if($this.Items -ne $null) {
67+
$result += "Items=$($this.Items)"
68+
}
69+
70+
$result -replace " $",""
71+
</Script>
72+
</ScriptMethod>
73+
</Members>
74+
</Type>
75+
<Type>
76+
<Name>Microsoft.AzureStack.Management.Gallery.Admin.Models.DefinitionTemplates</Name>
77+
<Members>
78+
<ScriptMethod>
79+
<Name>ToString</Name>
80+
<Script>
81+
$result = ""
82+
if($this.DefaultDeploymentTemplateId -ne $null) {
83+
$result += "DefaultDeploymentTemplateId=$($this.DefaultDeploymentTemplateId) `n"
84+
}
85+
if($this.DeploymentFragmentFileUris -ne $null) {
86+
$result += "DeploymentFragmentFileUris=$($this.DeploymentFragmentFileUris.Values) `n"
87+
}
88+
if($this.DeploymentTemplateFileUris -ne $null) {
89+
$result += "DeploymentTemplateFileUris=$($this.DeploymentTemplateFileUris.Values) `n"
90+
}
91+
if($this.UiDefinitionFileUri -ne $null) {
92+
$result += "UiDefinitionFileUri=$($this.UiDefinitionFileUri) `n"
93+
}
94+
95+
$result -replace " $",""
96+
</Script>
97+
</ScriptMethod>
98+
</Members>
99+
</Type>
100+
</Types>

0 commit comments

Comments
 (0)